Add remaining tokens to vhdl lexor
This commit is contained in:
parent
6f10a02b40
commit
bff0927db0
|
|
@ -191,18 +191,13 @@ based_integer [0-9a-fA-F](_?[0-9a-fA-F])*
|
|||
"=>" { return ARROW; }
|
||||
"<<" { return DLT; }
|
||||
">>" { return DGT; }
|
||||
/*
|
||||
Here comes a list of symbols that are more than strange,
|
||||
at least for the time being.
|
||||
|
||||
"??" { return K_CC; }
|
||||
"?=" {}
|
||||
"?/=" {}
|
||||
"?<" {}
|
||||
"?<=" {}
|
||||
"?>" {}
|
||||
"?>=" {}
|
||||
*/
|
||||
"??" { return CC; }
|
||||
"?=" { return M_EQ;}
|
||||
"?/=" { return M_NE;}
|
||||
"?<" { return M_LT; }
|
||||
"?<=" { return M_LEQ;}
|
||||
"?>" { return M_GT; }
|
||||
"?>=" {return M_GEQ; }
|
||||
|
||||
. { return yytext[0]; }
|
||||
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ const VType*parse_type_by_name(perm_string name)
|
|||
%token <uni_real> REAL_LITERAL
|
||||
%token <text> STRING_LITERAL CHARACTER_LITERAL BITSTRING_LITERAL
|
||||
/* compound symbols */
|
||||
%token LEQ GEQ VASSIGN NE BOX EXP ARROW DLT DGT
|
||||
%token LEQ GEQ VASSIGN NE BOX EXP ARROW DLT DGT CC M_EQ M_NE M_LT M_LEQ M_GT M_GEQ
|
||||
|
||||
/* The rules may have types. */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue