stella/src/yacc
Stephen Anthony f3f0617940 Added '_scanend' pseudo-register to track scanlines at end of last frame. Fixes #624. 2020-05-04 14:19:02 -02:30
..
Makefile.yacc Repo reorganization: move main Stella files directly into 'trunk'. 2009-05-21 12:53:06 +00:00
README.txt First pass at getting function parsing working again in the debugger. 2010-04-03 12:45:20 +00:00
YaccParser.cxx Added '_scanend' pseudo-register to track scanlines at end of last frame. Fixes #624. 2020-05-04 14:19:02 -02:30
YaccParser.hxx Updated copyright to 2020. Happy New Year to anyone reading this! 2019-12-31 13:48:56 -03:30
calctest.c Repo reorganization: move main Stella files directly into 'trunk'. 2009-05-21 12:53:06 +00:00
module.mk Repo reorganization: move main Stella files directly into 'trunk'. 2009-05-21 12:53:06 +00:00
stella.y First pass at code cleanup from enabling higher levels of warnings in clang/gcc. 2017-10-11 12:23:54 -02:30
y.tab.c disabled unreachable code 2019-08-16 11:07:16 +02:00
y.tab.h Improvements to the debugger prompt 2017-04-15 19:00:50 -02:30

README.txt

Makefile.yacc    - Not part of the regular stella build!
YaccParser.cxx   - C++ wrapper for generated parser, includes hand-coded lexer
YaccParser.hxx   - Include in user code, declares public "methods" (actually functions)
calctest.c       - Not part of stella! Used for testing the lexel/parser.
module.mk        - Used for regular Stella build
stella.y         - Yacc/Bison source for parser
y.tab.c, y.tab.h - Generated parser. NOT BUILT AUTOMATICALLY!

I've only tested stella.y with GNU bison 1.35 and (once) with Berkeley
Yacc 1.9. Hopefully your favorite version will work, too :)

Even though they're generated, y.tab.c and .h are in SVN. This is so that
people who don't have a local copy of bison or yacc can still compile
Stella.

If you modify stella.y, you MUST run "make -f Makefile.yacc" in this directory.
This will regenerate y.tab.c and y.tab.h. Do this before "svn commit".

If you're hacking the parser, you can test it without the rest of Stella
by running "make -f Makefile.yacc calctest" in this directory, then running
calctest with an expression as its argument:

./calctest '2+2'
= 4

If you're trying to benchmark the lexer/parser, try adding -DBM to the
g++ command that builds calctest.