- Added some tokens for future usage: 'function', 'hashfunction',

'knows', 'trusted'.
This commit is contained in:
ccremers 2006-01-09 09:38:17 +00:00
parent 8b30526a57
commit baf1856943
2 changed files with 11 additions and 3 deletions

View File

@ -32,6 +32,10 @@ int yylex(void);
%token UNTRUSTED
%token USERTYPE
%token SINGULAR
%token FUNCTION
%token HASHFUNCTION
%token KNOWS
%token TRUSTED
%type <tac> spdlcomplete
%type <tac> spdlrep
@ -286,11 +290,11 @@ key : term
%%
// error handler routing
//! error handler routing
int yyerror(char *s)
{
extern int yylineno; // defined and maintained in lex.c
extern char *yytext; // defined and maintained in lex.c
extern int yylineno; //!< defined and maintained in lex.c
extern char *yytext; //!< defined and maintained in lex.c
error ("%s at symbol '%s' on line %i.\n", s, yytext, yylineno);
}

View File

@ -95,6 +95,10 @@ untrusted { return UNTRUSTED; }
compromised { return COMPROMISED; }
usertype { return USERTYPE; }
singular { return SINGULAR; }
function { return FUNCTION; }
hashfunction { return HASHFUNCTION; }
knows { return KNOWS; }
trusted { return TRUSTED; }
{id} {
yylval.symb = mkstring(yytext);
return ID;