one more ragel warning to fix, fixed improper ir.c assignments
[henge/apc.git] / src / lexer_fsm.rl
index 96d999a..efa6bf3 100644 (file)
@@ -83,7 +83,7 @@ int lexer_setstr(uint8_t*, int);
   action push_width     { printf("Lexer_lexstring:: action:push_height p = %s\n", p);
                           PUSHTOK(WIDTH, ttov, val);
                         }
-  action push_link      {yylval.str = (uint8_t*) '#'; lexer_pushtok(LINK),yylval); }
+  action push_link      {yylval.str = (uint8_t*) '#'; lexer_pushtok(LINK,yylval); }
   #action lex_error      { printf("input error: character %c in filename %s is invalid\n p = %s\n", fc, str, p);}
   action p              { printf("Lexer_lexstring:: p = %s\n", p);}
     
@@ -112,9 +112,9 @@ int lexer_setstr(uint8_t*, int);
   tok = (name | val | ref | dimensions | map | link | SS | direction);
   
 
-  tok_lexer := (tok tok_delimiter)+ tok [\0];
+  main := (tok tok_delimiter)+ tok [\0];
 
-  write data;
+  write data nofinal noerror noprefix;
   
 }%%
 
@@ -177,7 +177,7 @@ lexer_lexstring
 
   main := direction; 
 
-  write data;
+  write data nofinal noprefix noerror;
 
  
 }%%