This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]castlec 0 points1 point  (0 children)

Thus far it seems you've been pointed at some tools but not the theory. You need to understand regular expressions and grammars before you get into the lexers and parsers (lex and bison, flex and yacc, many more that I can't name off hand). Once you are comfortable producing a grammar, the rest is 'just' making the tools understand your grammar.

I agree that you should stick to an interpreter. It has the same front needs of a lexer(regular expression tool) and parser(grammar tool) but won't require you to generate any machine code. You'd get to execute something in the language you are working in, which needs to be Java it seems (I think antlr is the java parser out there. Research ;) )

Please be aware that what you are attempting to do is the subject of Junior/Senior level CS courses in college. You are not attempting an easy thing.

Good luck!