From 1bb37b1f9f351100ff628cbfb56f6cf52925a2b3 Mon Sep 17 00:00:00 2001 From: Sarah Elizabeth Higbee Date: Tue, 14 Mar 2017 12:28:34 -0400 Subject: mah lexer --- token.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 token.h (limited to 'token.h') diff --git a/token.h b/token.h new file mode 100644 index 0000000..20bfa3f --- /dev/null +++ b/token.h @@ -0,0 +1,46 @@ +/* limit on total characters */ +#define LIMIT1 5000 + +/* limit on number of unique strings */ +#define LIMIT2 1000 + +#define ANDnum 257 +#define ASSGNnum 258 +#define DECLARATIONSnum 259 +#define DOTnum 260 +#define ENDDECLARATIONSnum 261 +#define EQUALnum 262 +#define GTnum 263 +#define IDnum 264 +#define INTnum 265 +#define LBRACnum 266 +#define LPARENnum 267 +#define METHODnum 268 +#define NEnum 269 +#define ORnum 270 +#define PROGRAMnum 271 +#define RBRACnum 272 +#define RPARENnum 273 +#define SEMInum 274 +#define VALnum 275 +#define WHILEnum 276 +#define CLASSnum 277 +#define COMMAnum 278 +#define DIVIDEnum 279 +#define ELSEnum 280 +#define EQnum 281 +#define GEnum 282 +#define ICONSTnum 283 +#define IFnum 284 +#define LBRACEnum 285 +#define LEnum 286 +#define LTnum 287 +#define MINUSnum 288 +#define NOTnum 289 +#define PLUSnum 290 +#define RBRACEnum 291 +#define RETURNnum 292 +#define SCONSTnum 293 +#define TIMESnum 294 +#define VOIDnum 295 +#define EOFnum 0 -- cgit v1.2.3-70-g09d2