I see a few sample main() for C floating about, e.g. http://www.antlr.org/wiki/display/ANTLR3/Five+minute+introduction+to+ANTLR+3 and http://www.antlr.org/api/C/index.html
The dereference seems to be AST. I don't know what that is , and - please excuse me - don't want to if I can avoid it.
I woudl like to just define the lexer & grammar (for modem AT commands) and have the main() auto-generated, or cut/pasted from somewhere.
Ons slight twist is that most examples seem to read from a file, whereas I will be getting a series of inputs (AT commands) as strings, passed as parameters.
Can anyone please point me at a simple main() which I can adapt (and maybe suggest hwo to adapt it?) A lot to ask I know, sorry.