hello people

I'm using yy_scan_string() before yyparse() for
parsing from a memory location (string) instead of a
stream. However, I notice I get parse errors when I
use literals instead of tokens. E.g.:
====
nt1:
    ':' rest
;
====

does not work with a given string, while
====
%token A
%%
nt1:
    A rest
;
====

does as long as I put ": return A;" in the lexer.

Is this expected with _scan_string? Do I need to
generate one token
for each literal?

thank you


        

        
                
___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html


_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to