[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bison input string
From: |
uwe farinol |
Subject: |
bison input string |
Date: |
Sat, 17 Feb 2007 17:42:43 +0100 (CET) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bison input string,
uwe farinol <=