command line tokenizer/parser

Hello everyone,

Can someone give me advice about books or other sources about creating command line parsers / tokens in a project? I'd like to learn about it and I'd like to have some good sources.

Thank you in advance.
I suggest the dragon book, it has every aspect of theory ( http://en.wikipedia.org/wiki/Dragon_Book_%28computer_science%29 )
"The C++ Programming Language" contains a section in which a recursive descent parser and a lexer for a calculator are written and explained
thank you very much Bazzy
http://compilers.iecc.com/crenshaw/

Best web resource I've found on teaching yourself about parsing / compilation in general (using recursive descent). The way it approaches the topic makes it really simple, and entertaining to work through, not too heavy. It's about making a compiler, but you can just ignore the parts on emitting code, and make it an interpreter (as per Part 4).
thank you, nice link!!
Wait. Do you want to write a parser or do you want to "parse" the arguments that are passed to your program?
Hello athar, I want to write a parser inside the program , just to translate mathematical operations inside and outside then program and call functions through a simple command line interface. It's not about arguments when calling the program, if that's what you're refering to

The information given above is very useful, even it's a complex issue at least for me, so I'll need some time to learn theses concepts the right way.
Last edited on
Topic archived. No new replies allowed.