mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix yacc conflict (asmfile/lastline/lines/line rules)
This commit is contained in:
committed by
Anthony J. Bentley
parent
37b615f070
commit
81675bc4c7
@@ -497,22 +497,16 @@ void if_skip_to_endc( void )
|
|||||||
|
|
||||||
%%
|
%%
|
||||||
|
|
||||||
asmfile : lines lastline;
|
asmfile : lines;
|
||||||
|
|
||||||
lastline : /* empty */
|
|
||||||
| line {
|
|
||||||
nLineNo += 1;
|
|
||||||
nTotalLines += 1;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
/* Note: The lexer add '\n' at the end of the input */
|
||||||
lines : /* empty */
|
lines : /* empty */
|
||||||
| lines line '\n' {
|
| lines line '\n' {
|
||||||
nLineNo += 1;
|
nLineNo += 1;
|
||||||
nTotalLines += 1;
|
nTotalLines += 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
line : /* empty */
|
line : label
|
||||||
| label
|
|
||||||
| label cpu_command
|
| label cpu_command
|
||||||
| label macro
|
| label macro
|
||||||
| label simple_pseudoop
|
| label simple_pseudoop
|
||||||
|
|||||||
Reference in New Issue
Block a user