lang-gen.sh (100B)
1 awk 'BEGIN{print "enum {"} /\/\*/{print "\t" $(NF)} END{print "};"}' lang.c|sed 's/\/\*//;s/\*\///'
dooma minimalistic implementation of doom | |
git clone git://ssnf.xyz/doom | |
Log | Files | Refs |
lang-gen.sh (100B)
1 awk 'BEGIN{print "enum {"} /\/\*/{print "\t" $(NF)} END{print "};"}' lang.c|sed 's/\/\*//;s/\*\///'