My script language ports methods from the java.awt.Graphics class into commands (like setcolor_0,127,214,255 //R,G,B,Alpha or fillrect_50,25,100,75 //x,y,w,h) into a picture so I avoid having to write an entire program every time.
The language is limited to pseudo functions and commands mapped to Graphics method calls, plus output specifiers as a header to each script, but I want to add more. The script serves as parser and interpreter, but processing input strings directly is inadequate. Found parser and lexer generators keep running into the same two problems:
- The generated parser will require some form of runtime dependency(/-ies) which only the generator can provide (e.g.: Beaver's products needing its own runtime files), or
- The generator does not appear to have been fully developed, if not then the generator still makes at least one disagreeable assumption. (e.g.: Jay's method of generating source code without enclosing class markings and assumption that all classes will be in the same file).
I would like to steer clear of ANTLR. I need a parser-generator which:
- Has plenty of documentation (external or otherwise) at no cost.
- Builds a parser that:
- Does not require external dependencies.
- Outputs Java source code which is 1.5 or later and easy to read.
- Generates a properly encapsulated class.