2012-12-19 Teemu Piippo So it turns out that the functions I thought were taking float are actually taking int. So, with the only reason for float removed, the float type is removed as well. I'd rather have fixed point anyway. file | diff | annotate
2012-12-19 Teemu Piippo Added constants, these are defined with const, take their value immediately and are replaced out with their value when used. The strlen operator can be used to get a string constant's length. file | diff | annotate
2012-12-19 Teemu Piippo Some rework on variables file | diff | annotate
2012-12-19 Teemu Piippo Good bunch of changes file | diff | annotate
2012-08-26 Teemu Piippo Don't try to read expressions as statements. That yields nothing useful and inevidently bombs out anyway. file | diff | annotate
2012-08-26 Teemu Piippo Fixed: parser allowed command calls with one too few arguments file | diff | annotate
2012-08-25 Teemu Piippo renamed to undefined labels, not unmarked labels... file | diff | annotate
2012-08-25 Teemu Piippo goto is now allowed to reference labels that will get defined afterwards. file | diff | annotate
2012-08-25 Teemu Piippo Added support for continue-statements file | diff | annotate
2012-08-25 Teemu Piippo Renamed 'block stack' to scope stack for more clarified code.. file | diff | annotate
2012-08-25 Teemu Piippo Fixed: else was alloed even without if strictly preceding it file | diff | annotate
2012-08-25 Teemu Piippo Added support for else-statements file | diff | annotate
2012-08-25 Teemu Piippo Added support for the ternary operator. file | diff | annotate
2012-08-13 Teemu Piippo Added floating point support for the most part. However, decimals are somehow lost during a cast.. file | diff | annotate
2012-08-13 Teemu Piippo Added support for operators &&, ||, &, | and ^ file | diff | annotate
2012-08-13 Teemu Piippo Added ! operator support. It's not really an operator since it's just checked at the beginning of the expression value but eh. file | diff | annotate
2012-08-13 Teemu Piippo Added <<= and >>= operator support. Zandronum does not provide these, thus they are translated to their longer forms by the compiler. Also aded << and >>. file | diff | annotate
2012-08-13 Teemu Piippo Added default label for switch file | diff | annotate
2012-08-13 Teemu Piippo rename ObjWriter::RecordBuffer to SwitchBuffer, as it is designed specifically for switch and will break if used genericly file | diff | annotate
2012-08-13 Teemu Piippo Added switch support... fixed more problems with marks in the process file | diff | annotate
2012-08-12 Teemu Piippo some cleanup file | diff | annotate
2012-08-12 Teemu Piippo Expressions now allow multiple operators file | diff | annotate
2012-08-12 Teemu Piippo Removed mark types as they served absolutely zero purpose file | diff | annotate
2012-08-12 Teemu Piippo Added do-while loop support file | diff | annotate
2012-08-12 Teemu Piippo Added for-loop support file | diff | annotate
2012-08-11 Teemu Piippo FINALLY, marks and references work smoothly without hacks. if and while work properly. file | diff | annotate
2012-08-11 Teemu Piippo Added while loop support. However, script marks keep getting wrong position numbers.. file | diff | annotate
2012-07-30 Teemu Piippo Committed the other changes done during a failed attempt of else file | diff | annotate
2012-07-30 Teemu Piippo Fixed mark positioning - multiple if statements should work properly now file | diff | annotate
2012-07-30 Teemu Piippo Added if() support file | diff | annotate
2012-07-29 Teemu Piippo Added mark/reference system to be able to refer to positions in the buffered bytecode. Labels and go-to support. file | diff | annotate
2012-07-29 Teemu Piippo Parser can now read expressions 100% properly and can perform variable assignment. I'd call this a milestone! file | diff | annotate
2012-07-28 Teemu Piippo Negative literal integers work properly now.. file | diff | annotate
2012-07-28 Teemu Piippo Expression parser mostly up and running!! Still work to do on it though. file | diff | annotate
2012-07-17 Teemu Piippo Added a preprocessor with proper #include support. Macro support via #define is planned too. God, was it a B-I-T-C-H to get working right, though.. file | diff | annotate
2012-07-16 Teemu Piippo Lifted the ';'-after-events rule, though it can still be present. C++ allows it for functions, so this feels like the best solution regarding consistency.. I'm not even sure am I going overboard with this kind of stuff file | diff | annotate
2012-07-16 Teemu Piippo Added comment support file | diff | annotate
2012-07-15 Teemu Piippo 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 :) file | diff | annotate
2012-07-15 Teemu Piippo Fixed unary operators.. file | diff | annotate
2012-07-15 Teemu Piippo Variables can now be assigned values, unfortunately not at top level. file | diff | annotate
2012-07-14 Teemu Piippo Added rudimentary global var support file | diff | annotate
2012-07-14 Teemu Piippo Added -l command line parameter, if given, botc will list all available commands and exit. file | diff | annotate
2012-07-14 Teemu Piippo Added string table and support for string parameters in commands. file | diff | annotate
2012-07-14 Teemu Piippo Commands w/ arguments are now written correctly. file | diff | annotate
2012-07-14 Teemu Piippo New rule: a semicolon is now required after events, mainloop, onexit and onenter definitions. file | diff | annotate
2012-07-14 Teemu Piippo Events and commands are now treated properly case-insensitively. file | diff | annotate
2012-07-14 Teemu Piippo Added mainloop/onenter/onexit support, fixed state writing.. this thing can compile the script for the `jumping arghbot` now! file | diff | annotate
2012-07-14 Teemu Piippo Moved command parser to a new function. file | diff | annotate
2012-07-14 Teemu Piippo If any optional parameters are skipped, default values are now filled in. file | diff | annotate
2012-07-14 Teemu Piippo Parser now can read optional arguments properly. file | diff | annotate
2012-07-14 Teemu Piippo MustString now behaves more like its siblings - sets token to result rather than returning it file | diff | annotate
2012-07-14 Teemu Piippo Added proper string checking file | diff | annotate
2012-07-14 Teemu Piippo Commands are now read properly. file | diff | annotate
2012-07-13 Teemu Piippo Improved error handling; added parser warnings file | diff | annotate
2012-07-13 Teemu Piippo oh blerb. file | diff | annotate
2012-07-13 Teemu Piippo Added event definitions file | diff | annotate
2012-07-13 Teemu Piippo Added support for #include directives, added basic header and statistics printing. file | diff | annotate
2012-07-13 Teemu Piippo Initial commit file | diff | annotate
(0) tip

mercurial