[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error-tokens and locations?
From: |
Paul Eggert |
Subject: |
Re: error-tokens and locations? |
Date: |
18 Nov 2003 13:38:11 -0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
After replacing /bin/bison with bison in the makefile, I get the following
results on my GNU/Linux host running Bison 1.875c. Is this the behavior
that you get? If so, why is it a bug?
bash-2.05a$ make
bash -c "bison LowLevelParser.y -d -pLLP -v --debug
--file-prefix=LowLevelParser"
bash-2.05a$ make all
cc -c -o LowLevelParser.tab.o LowLevelParser.tab.c
flex -PLLP -oLowLevelParser.l.c LowLevelParser.l
cc -c -o LowLevelParser.l.o LowLevelParser.l.c
g++ -c -o LLP_Support.o LLP_Support.cpp
gcc LowLevelParser.tab.o LowLevelParser.l.o LLP_Support.o
bash-2.05a$ ./a.out
Starting parse
Entering state 0
Reading a token:
COUNTING CHARS: "Gene" : 0 - 4
Next token is token NAME ()
Shifting token NAME, Entering state 1
Reading a token:
COUNTING CHARS: "[" : 4 - 5
Next token is token '[' ()
Shifting token '[', Entering state 4
Reading a token:
COUNTING CHARS: "NameQ" : 5 - 10
Next token is token NAME ()
Shifting token NAME, Entering state 8
Reading a token:
COUNTING CHARS: ""TG"" : 10 - 14
Next token is token STRING ()
YYERROR: syntax error
Shifting error token,
MERGING LOCATIONS: (0 - 0) [0](5 - 10)
Entering state 14
MERGING LOCATIONS: (5 - 10) [2](0 - 10)
Reducing stack by rule 13 (line 41), NAME error -> param
ERROR MESSAGE: Expected '=' after parameter name - 0 - 10
Stack now 0 1 4
Entering state 11
MERGING LOCATIONS: (5 - 10) [1](5 - 10)
Reducing stack by rule 7 (line 33), param -> param_list
Stack now 0 1 4
Entering state 10
Next token is token STRING ()
Error: discarding token STRING ()
Shifting error token,
MERGING LOCATIONS: (10 - 14) [1](10 - 14)
Entering state 16
MERGING LOCATIONS: (4 - 5) [3](10 - 14)
Reducing stack by rule 5 (line 29), '[' param_list error -> optional_params
ERROR MESSAGE: Expected ']' after parameter list - 10 - 14
Stack now 0 1
Entering state 5
MERGING LOCATIONS: (5 - 10) [0](4 - 14)
Reducing stack by rule 15 (line 47), -> optional_children
Stack now 0 1 5
Entering state 13
MERGING LOCATIONS: (0 - 4) [3](5 - 14)
Reducing stack by rule 2 (line 24), NAME optional_params optional_children ->
node
Stack now 0
Entering state 3
MERGING LOCATIONS: (0 - 14) [1](0 - 14)
Reducing stack by rule 1 (line 21), node -> outer
Stack now 0
Entering state 2
Reading a token:
COUNTING CHARS: "]" : 14 - 15
Next token is token ']' ()
Error: discarding token ']' ()
Error: popping nterm outer ()
Stack now 0
bash-2.05a$
- error-tokens and locations?, Ian Badcoe, 2003/11/13
- Re: error-tokens and locations?, Paul Eggert, 2003/11/13
- Re: error-tokens and locations?, Ian Badcoe, 2003/11/14
- Re: error-tokens and locations?, Paul Eggert, 2003/11/14
- Re: error-tokens and locations?, Ian Badcoe, 2003/11/17
- Re: error-tokens and locations?, Ian Badcoe, 2003/11/17
- Re: error-tokens and locations?, Paul Eggert, 2003/11/17
- Re: error-tokens and locations?, Ian Badcoe, 2003/11/17
- Re: error-tokens and locations?, Paul Eggert, 2003/11/17
- Re: error-tokens and locations?, Ian Badcoe, 2003/11/18
- Re: error-tokens and locations?,
Paul Eggert <=
- Re: error-tokens and locations?, Ian Badcoe, 2003/11/19