Negative numbers are now considered numbers too...

Moved CharByte inside DataBuffer since that's where it belongs anyway.

Added comment support

Rid the qbyte type as I just use long everywhere anyway

Mainloop and onenter definitions are now written into separate buffers first and only written to file after state ends. Why? Zandronum seems to demand that mainloop definitions MUST be written right after any onenter one. This way, mainloop and onenter definitions can be written without this restriction in the script. Also now I have a cool uchar-buffer class :)

Fixed unary operators..

Variables can now be assigned values, unfortunately not at top level.

Forgot the actual new code files out of previous commit

Added rudimentary global var support

Added -l command line parameter, if given, botc will list all available commands and exit.

Added string table and support for string parameters in commands.

Commands w/ arguments are now written correctly.

New rule: a semicolon is now required after events, mainloop, onexit and onenter definitions.

Events and commands are now treated properly case-insensitively.

Added mainloop/onenter/onexit support, fixed state writing.. this thing can compile the script for the `jumping arghbot` now!

Moved command parser to a new function.

If any optional parameters are skipped, default values are now filled in.

Parser now can read optional arguments properly.

MustString now behaves more like its siblings - sets token to result rather than returning it

Removed extdelimeters member, said delimeters are always enabled now.

Restructured the command def parser, added parameter lists to definition file.

Added proper string checking

Commands are now read properly.

Improved error handling; added parser warnings

Command definitions are now read into memory.

Added command definition file

Removed unused parser.h file

oh blerb.

Added event definitions

Added support for #include directives, added basic header and statistics printing.

(0) +30 +50 +100 tip

mercurial