+2003-03-01 Tim Josling <tej@melbpc.org.au>
+
+ Name clashes with rtl.h fixed.
+
+ * lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
+ tl_RETURN.
+
+ * parse.y: Ditto.
+
2003-02-24 Tim Josling <tej@melbpc.org.au>
* parse.y (my_yylex): New - ensure lexer time is charged to
%token COMMA
%right EQUALS
%right ASSIGN
-%left PLUS
-%left MINUS
+%left tl_PLUS
+%left tl_MINUS
/* Literals. */
%token INTEGER
/* Keywords. */
%token IF
%token ELSE
-%token RETURN
+%token tl_RETURN
%token CHAR
%token INT
%token UNSIGNED
return:
-RETURN expression_opt {
+tl_RETURN expression_opt {
struct prod_token_parm_item *type_prod;
struct prod_token_parm_item* ret_tok;
ret_tok = $1;
|variable_ref {
$$ = $1;
}
-|expression PLUS expression {
+|expression tl_PLUS expression {
struct prod_token_parm_item* tok;
struct prod_token_parm_item *prod;
struct prod_token_parm_item *op1;
}
$$ = prod;
}
-|expression MINUS expression %prec PLUS {
+|expression tl_MINUS expression %prec tl_PLUS {
struct prod_token_parm_item* tok;
struct prod_token_parm_item *prod;
struct prod_token_parm_item *op1;