New compound VHDL symbols

This commit is contained in:
Pawel Szostek 2011-01-28 10:03:48 +01:00 committed by Stephen Williams
parent ac28743eb0
commit d747859a85
2 changed files with 14 additions and 1 deletions

View File

@ -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]; }

View File

@ -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