001 /* Generated By:JavaCC: Do not edit this line. BnfParserConstants.java */ 002 package net.hydromatic.clapham.parser.bnf; 003 004 005 /** 006 * Token literal values and constants. 007 * Generated by org.javacc.parser.OtherFilesGen#start() 008 */ 009 public interface BnfParserConstants { 010 011 /** End of File. */ 012 int EOF = 0; 013 /** RegularExpression Id. */ 014 int IDENTIFIER = 1; 015 /** RegularExpression Id. */ 016 int LETTER = 2; 017 /** RegularExpression Id. */ 018 int DIGIT = 3; 019 /** RegularExpression Id. */ 020 int LPAREN = 4; 021 /** RegularExpression Id. */ 022 int RPAREN = 5; 023 /** RegularExpression Id. */ 024 int HOOK = 6; 025 /** RegularExpression Id. */ 026 int PLUS = 7; 027 /** RegularExpression Id. */ 028 int ASTERISK = 8; 029 /** RegularExpression Id. */ 030 int COLCOLEQ = 9; 031 /** RegularExpression Id. */ 032 int BAR = 10; 033 /** RegularExpression Id. */ 034 int QUOT = 11; 035 /** RegularExpression Id. */ 036 int BRACKETED_IDENTIFIER = 12; 037 /** RegularExpression Id. */ 038 int LITERAL = 13; 039 /** RegularExpression Id. */ 040 int SINGLE_LINE_COMMENT = 21; 041 /** RegularExpression Id. */ 042 int MULTI_LINE_COMMENT = 22; 043 044 /** Lexical state. */ 045 int DEFAULT = 0; 046 /** Lexical state. */ 047 int IN_SINGLE_LINE_COMMENT = 1; 048 /** Lexical state. */ 049 int IN_MULTI_LINE_COMMENT = 2; 050 051 /** Literal token values. */ 052 String[] tokenImage = { 053 "<EOF>", 054 "<IDENTIFIER>", 055 "<LETTER>", 056 "<DIGIT>", 057 "\"(\"", 058 "\")\"", 059 "\"?\"", 060 "\"+\"", 061 "\"*\"", 062 "\"::=\"", 063 "\"|\"", 064 "\"\\\"\"", 065 "<BRACKETED_IDENTIFIER>", 066 "<LITERAL>", 067 "\" \"", 068 "\"\\t\"", 069 "\"\\f\"", 070 "\"\\r\"", 071 "\"\\n\"", 072 "\"//\"", 073 "\"/*\"", 074 "<SINGLE_LINE_COMMENT>", 075 "\"*/\"", 076 "<token of kind 23>", 077 }; 078 079 }