Perfecting parser, lexer, and parse-tree handling for policy files; Generating skelet...
[iot2.git] / others / javacup / README
1 Compiling JavaCUP source code into a parser java file:
2
3 1) Read the manual to get the JavaCUP up and running on our system here: http://www2.cs.tum.edu/projects/cup/
4 2) Download the JavaCUP library
5 3) Compile the JavaCUP (.cup) file using this command:
6
7         java -jar <path-to-jar>/java-cup-xxb.jar -interface -parser Parser [-xmlactions] iotparser.cup
8 4) A file, Parser.java, will be generated and it can be compiled with the Lexer.java from Jflex