KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > lexer > demo > javacc > CalcConstants


1 /* Generated By:JavaCC: Do not edit this line. CalcConstants.java */
2 // [MODIFY] Change the "Calc" to the target name of the language e.g. "MyLang".
3

4 package org.netbeans.modules.lexer.demo.javacc;
5
6 public interface CalcConstants {
7
8   int EOF = 0;
9   int WHITESPACE = 1;
10   int INCOMPLETE_ML_COMMENT = 2;
11   int ML_COMMENT = 3;
12   int PLUS = 4;
13   int MINUS = 5;
14   int MUL = 6;
15   int DIV = 7;
16   int MUL3 = 8;
17   int PLUS5 = 9;
18   int LPAREN = 10;
19   int RPAREN = 11;
20   int CONSTANT = 12;
21   int FLOAT = 13;
22   int INTEGER = 14;
23   int DIGIT = 15;
24   int ML_COMMENT_END = 16;
25   int ERROR = 17;
26
27   int DEFAULT = 0;
28   int IN_ML_COMMENT = 1;
29
30   String JavaDoc[] tokenImage = {
31     "<EOF>",
32     "<WHITESPACE>",
33     "\"/*\"",
34     "<ML_COMMENT>",
35     "\"+\"",
36     "\"-\"",
37     "\"*\"",
38     "\"/\"",
39     "\"***\"",
40     "\"+++++\"",
41     "\"(\"",
42     "\")\"",
43     "<CONSTANT>",
44     "<FLOAT>",
45     "<INTEGER>",
46     "<DIGIT>",
47     "\"*/\"",
48     "<ERROR>",
49   };
50
51 }
52
Popular Tags