-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.c
86 lines (80 loc) · 4.65 KB
/
constants.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// GROUP - 30
// ID: 2020A7PS0094P Name: Arya Veer Singh Chauhan
// ID: 2020A7PS0049P Name: Madhav Madhusoodanan
// ID: 2020A7PS0016P Name: Ruchika Sarkar
// ID: 2020A7PS0984P Name: Utsav Goel
// ID: 2020A7PS0102P Name: Hardik Jain
char* TOKENS_STRING[] = { "default" , "module" , "$" , "$" , "$" , "$" , ">>>" , "true" , "$" , "$" , "$" , "$" , "$" , "case" , "$" , "$" , "$" , "$" , "driver" , "$" , "$" , "$" , "$" , "$" , "$" , "array" , "OR" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "print" , "$" , "$" , "$" , "(" , ")" , "*" , "+" , "," , "-" , "$" , "/" , "$" , "while" , "$" , "program" , "$" , "$" , "$" , "$" , "AND" , "$" , ":" , ";" , "<" , "$" , ">" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "start" , "$" , "$" , "$" , "$" , "$" , "end" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "[" , "$" , "]" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "for" , "$" , "$" , "$" , "in" , "$" , "$" , "$" , "of" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "boolean" , "get_value" , "real" , "$" , "$" , "$" , "$" , "$" , "$" , "!=" , "switch" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , ".." , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "input" , "$" , "integer" , "$" , "$" , "$" , "$" , "$" , "$" , "use" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "takes" , "$" , "$" , "$" , "declare" , "$" , "$" , "$" , "false" , "$" , ":=" , "$" , "$" , "<<" , "<=" , "$" , "==" , "$" , ">=" , ">>" , "parameters" , "$" , "break" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "returns" , "$" , "$" , "$" , "$" , "<<<" , "$" , "$" , "$" , "with" , "$" , "$" , "$"};
char* TERMINALS_STRINGS[] = { "DEFAULT" , "MODULE" , "$" , "$" , "$" , "$" , "DRIVERENDDEF", "true" , "$" , "$" , "$" , "$" , "$" , "CASE" , "$" , "$" , "$" , "$" , "DRIVER" , "$" , "$" , "$" , "$" , "$" , "$" , "ARRAY" , "OR" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "PRINT" , "$" , "$" , "$" , "BO" , "BC" , "MUL" , "PLUS" , "COMMA" , "MINUS" , "$" , "DIV" , "$" , "WHILE" , "$" , "PROGRAM" , "$" , "$" , "$" , "$" , "AND" , "$" , "COLON" , "SEMICOL" , "LT" , "$" , "GT" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "START" , "$" , "$" , "$" , "$" , "$" , "END" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "SQBO" , "$" , "SQBC" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "FOR" , "$" , "$" , "$" , "IN" , "$" , "$" , "$" , "OF" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "BOOLEAN" , "GET_VALUE" , "REAL" , "$" , "$" , "$" , "$" , "$" , "$" , "NE" , "SWITCH" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "RANGEOP" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "INPUT" , "$" , "INTEGER" , "$" , "$" , "$" , "$" , "$" , "$" , "USE" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "TAKES" , "$" , "$" , "$" , "DECLARE" , "$" , "$" , "$" , "false" , "$" , "ASSIGNOP" , "$" , "$" , "DEF" , "LE" , "$" , "EQ" , "$" , "GE" , "ENDDEF" , "PARAMETERS" , "$" , "BREAK" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "$" , "RETURNS" , "$" , "$" , "$" , "$" , "DRIVERDEF" , "$" , "$" , "EOF" , "WITH" , "ID" , "NUM" , "RNUM"};
char* NONTERMINALS_STRINGS[] = {
"finalProgram",
"program",
"moduleDeclarations",
"moduleDeclaration",
"otherModules",
"driverModule",
"module",
"ret",
"input_plist",
"leftFactored_input_plist",
"output_plist",
"leftFactored_output_plist",
"dataType",
"arrRange",
"leftFactored_arrRange",
"sign",
"type",
"moduleDef",
"statements",
"statement",
"ioStmt",
"leftFactored_ioStmt",
"boolValues",
"var",
"whichId",
"leftFactored_whichId",
"simpleStmt",
"assignmentStmt",
"whichStmt",
"lvalueIDStmt",
"lvalueARRStmt",
"moduleReuseStmt",
"optional",
"idList",
"leftFactored_idList",
"expression",
"unaryTerm",
"arithmeticFactor",
"arithmeticBooleanExpr",
"logicalTerm",
"relationalTerm",
"arithmeticExpr",
"leftFactored_arithmeticExpr",
"pm",
"md",
"term",
"leftFactored_term",
"factor",
"arithmeticExprWArr",
"leftFactored_arithmeticExprWArr",
"termWArr",
"leftFactored_termWArr",
"signedFactorWArr",
"factorWArr",
"logicalOp",
"relationalOp",
"declareStmt",
"conditionalStmt",
"caseStmt",
"leftFactored_caseStmt",
"value",
"dfault",
"iterativeStmt",
"param",
"arrID",
"paramList",
"leftFactored_paramList",
"signedParam",
"anyTerm",
"idNum"
};