Structure that represents a location in a file.
t_fileLocation curFileLoc
Header file associated to parser.y.
Header file associated to scanner.y.
25ID [a-zA-Z_][a-zA-Z0-9_]*
int row
The zero-based index of a line in the file.
45<comment>"*"+"/" BEGIN(INITIAL);
49"[" {
return LSQUARE; }
50"]" {
return RSQUARE; }
66"<<" {
return SHL_OP; }
67">>" {
return SHR_OP; }
72"&&" {
return ANDAND; }
77"else" {
return ELSE; }
80"while" {
return WHILE; }
81"return" {
return RETURN; }
82"read" {
return READ; }
83"write" {
return WRITE; }
86 yylval.string = strdup(yytext);
90 yylval.integer = atoi(yytext);
void yyerror(const char *msg)