New compound VHDL symbols
This commit is contained in:
parent
ac28743eb0
commit
d747859a85
|
|
@ -73,6 +73,7 @@ W [ \t\b\f\r]+
|
|||
<CCOMMENT>\n { yylloc.first_line += 1; }
|
||||
<CCOMMENT>"*/" { BEGIN(comment_enter); }
|
||||
|
||||
|
||||
[a-zA-Z_][a-zA-Z0-9_]* {
|
||||
int rc = lexor_keyword_code(yytext, yyleng);
|
||||
switch (rc) {
|
||||
|
|
@ -89,6 +90,18 @@ W [ \t\b\f\r]+
|
|||
"<=" { return LEQ; }
|
||||
">=" { return GEQ; }
|
||||
":=" { return VASSIGN; }
|
||||
"/=" { return NE; }
|
||||
"<>" { return BOX; }
|
||||
j
|
||||
/*
|
||||
"??" { return K_CC; }
|
||||
"?=" {}
|
||||
"?/=" {}
|
||||
"?<" {}
|
||||
"?<=" {}
|
||||
"?>" {}
|
||||
"?>=" {}
|
||||
*/
|
||||
|
||||
. { return yytext[0]; }
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ int parse_errors = 0;
|
|||
/* Identifiers that are not keywords are identifiers. */
|
||||
%token <text> IDENTIFIER
|
||||
/* compound symbols */
|
||||
%token LEQ GEQ VASSIGN
|
||||
%token LEQ GEQ VASSIGN NE BOX EXP
|
||||
|
||||
/* The rules may have types. */
|
||||
%type <interface_element> interface_element
|
||||
|
|
|
|||
Loading…
Reference in New Issue