Re:Any resources for designing the syntax for a programming ...
by rurban on Saturday December 23, 2017 @09:35PM
(#15997573)
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
[ Parent
| on HN ]
Re:Any resources for designing the syntax for a programming ...
by yesenadam on Sunday December 24, 2017 @03:39AM
(#15998642)
Oh 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.
Re:Any resources for designing the syntax for a programming ...
by oceanghost on Saturday December 23, 2017 @10:34PM
(#15997760)
I'd like to second rurban's answer.
Grammars are something that separates the men from the boys as they say.