aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/grammar.cpp
AgeCommit message (Collapse)Author
2009-10-20SCI: Fix for _vocab_free_empty_rule_listMax Horn
svn-id: r45278
2009-10-20SCI: Fix _vocab_add_rule by re-adding the 'if' statement I accidentally ↵Max Horn
removed in rev 45263 svn-id: r45275
2009-10-20SCI: Fix for _vocab_add_rule (term was not being inited)Max Horn
svn-id: r45263
2009-10-19SCI: Oopify ParseRule/ParseRuleList stuff a bit moreMax Horn
svn-id: r45254
2009-10-19SCI: Cleanup the grammar/vocab code: Move defs from vocabulary.h to ↵Max Horn
grammar.cpp where possible, turn comments into doxygen format etc. svn-id: r45253
2009-10-16Moved sci_ffs() inside iterator.cpp, the only place where it's actually ↵Filippos Karapetis
used, and removed tools.*. Also, removed all the unused includes to tools.h from several places svn-id: r45176
2009-09-30- Moved the list of synonyms and parser nodes inside the vocabulary classFilippos Karapetis
- Added a convenience member inside the EngineState struct to access the instance of the Vocabulary class svn-id: r44481
2009-07-06Replaced sciprintf() calls with printf, DebugPrintf, warning and error callsFilippos Karapetis
svn-id: r42167
2009-07-03- Pushed debugstate into debug.hFilippos Karapetis
- When an error occurs, manipulate the execution stack before error() opens the console inside getDebugger(), like FreeSCI did. Added another method for obtaining the SCI console for use by the engine itself. svn-id: r42062
2009-06-06Moved some more debug commands to ScummVM's coneoleFilippos Karapetis
svn-id: r41227
2009-06-03- Moved the engine state and the console to be private members of SciEngineFilippos Karapetis
- Implemented pauseEngineIntern() - Music now stops and resumes when entering/leaving the debugger svn-id: r41139
2009-05-31Further objectification of the SCI vocabulary functions. Removed the ↵Filippos Karapetis
"kernel_words" console command, as it's exactly the same as "parser_words" svn-id: r41065
2009-05-31Typo.Johannes Schickel
svn-id: r41054
2009-05-30SCI: Made vocab_version static again (a global static var is bad, but a ↵Max Horn
really global var is worse); also clarified some FIXME comments that we want to avoid *any* non-const global var, no matter whether it is static or not svn-id: r41045
2009-05-30Moved some script debug commands to console.cpp: "clear_screen", ↵Filippos Karapetis
"redraw_screen", "save_game", "restore_game", "restart_game", "class_table", "parser_words", "current_port" and "parse_grammar" svn-id: r41029
2009-05-30SCI: Moved the rest of the console code out of sciconsole.cpp and into ↵Filippos Karapetis
console.cpp. "list" and "hexgrep" have been added to the console commands. parse_reg_t() has been moved to kmovement.cpp (as it's the only code using it). Note that the debug commands in scriptdebug.cpp have not been converted yet, so they don't work at the moment svn-id: r41024
2009-05-26Turned some static tables into static const tables; added some FIXME ↵Max Horn
comments to global static vars that should be removed (many more exist in SCI, Tinsel, and some other engines) svn-id: r40908
2009-05-15- Moved all the files out of /sci/scicore and into /sciFilippos Karapetis
- Moved /scicore/sciconsole.h into /engine, and renamed /engine/scriptconsole.cpp to /engine/sciconsole.cpp svn-id: r40608
2009-05-12SCI: Removed sci_memory.h/.cppMax Horn
svn-id: r40514
2009-04-24SCI: Store parse_tree_branch_t in a Common::ArraayMax Horn
svn-id: r40100
2009-03-24SCI: Rewrote vocabulary code to use a Common::HashMap<String,ResultWord>Max Horn
svn-id: r39671
2009-03-12SCI: Removed most uses of the 'inline' keyword. It is usually better to let ↵Max Horn
the compiler figure out what to inline. As it is, most of these looked as if they were randomly placed ;) svn-id: r39352
2009-03-09SCI: result_word_t -> ResultWord; switched to Common::List for storing lists ↵Max Horn
of ResultWords svn-id: r39278
2009-03-04SCI: Reduce header interdepsMax Horn
svn-id: r39107
2009-02-27SCI: Moved almost all files from include/ to other dirs; only ↵Max Horn
include/engine.h remains svn-id: r38920
2009-02-24SCI: Moved sciconsole.h and sys_strings.h to the dirs their *.cpp ↵Max Horn
counterparts are in svn-id: r38835
2009-02-22Whitespace cleanupJordi Vilalta Prat
svn-id: r38783
2009-02-21Renamed SCI's console to sciconsole (MSVC has problems with files with the ↵Filippos Karapetis
same name under different directories). ScummVM's console can be enabled correctly under MSVC now svn-id: r38722
2009-02-21SCI: Moved scicore/tools.cpp to tools.cpp, and include/resource.h to tools.hMax Horn
svn-id: r38720
2009-02-21Wrapped the SCI engine in the Sci namespace.Oystein Eftevaag
svn-id: r38676
2009-02-19formatingPaweł Kołodziejski
svn-id: r38554
2009-02-17Update headers. engine/Eugene Sandulenko
svn-id: r38408
2009-02-16SCI: cleanupMax Horn
svn-id: r38336
2009-02-15SCI: Run astyle to make the code be more compliant with our Code Formatting ↵Max Horn
Guidelines: engine dir svn-id: r38317
2009-02-15Fixed some warnings.Johannes Schickel
svn-id: r38249
2009-02-15Fixed lots of warnings and errors (on my system) by backporting a patch I ↵Max Horn
had sent the FreeSCI folks some time ago (but apparently it never made it, or only made it to a branch not imported?) svn-id: r38245
2009-02-15Silenced a ton of warnings, and disabled several unreferenced functions ↵Filippos Karapetis
(dead code) - hopefully, compilation hasn't been broken... svn-id: r38243
2009-02-15- Remove some unneeded filesEugene Sandulenko
- Mass rename .c to .cpp svn-id: r38227