3 ms·
The usually best introduction for this is “Compiler Construction using Flex and Bison” Anthony A. Aaby 2004 http://foja.dcs.fmph.uniba.sk/kompilatory/docs/comp
by rurban 9y ago
The usually best introduction for this is
“Compiler Construction using Flex and Bison” Anthony A. Aaby 2004
http://foja.dcs.fmph.uniba.sk/kompilatory/docs/compiler.pdf http://foja.dcs.fmph.uniba.sk/kompilatory/docs/compiler.pdf
- oceanghost 9y agoI'd like to second rurban's answer. Grammars are something that separates the men from the boys as they say. https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form
- yesenadam 9y agoOh yeah. I read the original question as 'I know about lex/yacc' or their modern equivalents flex/bison.. but I guess not. You can do a lot just with lex/flex, e.g. it's fine for small languages. Probably play around with that before attempting something insanely ambitious. Also, I'm not sure how getting to the first-ever-designed language will help with anything, as you (OP) seem to be trying to do. Probably it's not being aware of lexical analysis (lex family) + parsing (yacc family) . There are some great books on those.