changelog
- 2014-01-19
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 19 Jan 2014 20:16:00 +0200] rev 82
- - added the public-domain updaterevision so I can have access to git stuff
- lexer #include now works properly! woot!
- merged commands.def and events.def to botc_defs.bts. This is essentially the "zcommon.acs" of botc.
- 2014-01-18
- by Teemu Piippo <crimsondusk64@gmail.com> [Sat, 18 Jan 2014 02:11:45 +0200] rev 81
- - further lexer corrections
- 2014-01-17
- by Teemu Piippo <crimsondusk64@gmail.com> [Fri, 17 Jan 2014 22:57:40 +0200] rev 80
- - forgot to rename these header guards when i ported the lexer from an earlier project of mine
- 2014-01-17
- by Teemu Piippo <crimsondusk64@gmail.com> [Fri, 17 Jan 2014 22:55:13 +0200] rev 79
- - parser now processes commands.def properly
- 2014-01-17
- by Teemu Piippo <crimsondusk64@gmail.com> [Fri, 17 Jan 2014 21:42:02 +0200] rev 78
- - added .gitignore
- 2014-01-17
- by Teemu Piippo <crimsondusk64@gmail.com> [Fri, 17 Jan 2014 21:39:25 +0200] rev 77
- - various corrections
- 2014-01-13
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 13 Jan 2014 23:44:50 +0200] rev 76
- - removed bots.h
- 2014-01-13
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 13 Jan 2014 23:44:15 +0200] rev 75
- - renamed files to .cxx, restructured parser.cc
- 2014-01-12
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 13 Jan 2014 00:15:38 +0200] rev 74
- more rework
- 2014-01-11
- by Teemu Piippo <crimsondusk64@gmail.com> [Sat, 11 Jan 2014 22:36:31 +0200] rev 73
- - *hot stuff coming through*
- 2014-01-10
- by Teemu Piippo <crimsondusk64@gmail.com> [Fri, 10 Jan 2014 21:58:42 +0200] rev 72
- - major refactoring begins
- 2014-01-10
- by Teemu Piippo <crimsondusk64@gmail.com> [Fri, 10 Jan 2014 16:11:49 +0200] rev 71
- - moved sources to src/, migrated to cmake
- 2013-01-02
- by Teemu Piippo <crimsondusk64@gmail.com> [Wed, 02 Jan 2013 23:57:46 +0200] rev 70
- test
- 2012-12-19
- by Teemu Piippo <crimsondusk64@gmail.com> [Wed, 19 Dec 2012 22:01:42 +0200] rev 69
- 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.
- 2012-12-19
- by Teemu Piippo <crimsondusk64@gmail.com> [Wed, 19 Dec 2012 13:44:18 +0200] rev 68
- 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.
- 2012-12-19
- by Teemu Piippo <crimsondusk64@gmail.com> [Wed, 19 Dec 2012 04:20:02 +0200] rev 67
- Some rework on variables
- 2012-12-19
- by Teemu Piippo <crimsondusk64@gmail.com> [Wed, 19 Dec 2012 03:27:15 +0200] rev 66
- Good bunch of changes
- 2012-08-26
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 26 Aug 2012 23:54:58 +0300] rev 65
- Don't try to read expressions as statements. That yields nothing useful and inevidently bombs out anyway.
- 2012-08-26
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 26 Aug 2012 23:28:09 +0300] rev 64
- Fixed: parser allowed command calls with one too few arguments
- 2012-08-26
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 26 Aug 2012 23:18:59 +0300] rev 63
- - Fixed error display - peeking was pushing recorded `cursor` position out of sync
- Added a rudimentary dynamic array class.. not used yet.
- 2012-08-25
- by Teemu Piippo <crimsondusk64@gmail.com> [Sat, 25 Aug 2012 05:22:32 +0300] rev 62
- renamed to undefined labels, not unmarked labels...
- 2012-08-25
- by Teemu Piippo <crimsondusk64@gmail.com> [Sat, 25 Aug 2012 05:20:16 +0300] rev 61
- goto is now allowed to reference labels that will get defined afterwards.
- 2012-08-25
- by Teemu Piippo <crimsondusk64@gmail.com> [Sat, 25 Aug 2012 05:05:58 +0300] rev 60
- only print revision in version header if it's non-zero
- 2012-08-25
- by Teemu Piippo <crimsondusk64@gmail.com> [Sat, 25 Aug 2012 04:19:22 +0300] rev 59
- Added support for continue-statements
- 2012-08-25
- by Teemu Piippo <crimsondusk64@gmail.com> [Sat, 25 Aug 2012 04:02:37 +0300] rev 58
- Renamed 'block stack' to scope stack for more clarified code..
- 2012-08-25
- by Teemu Piippo <crimsondusk64@gmail.com> [Sat, 25 Aug 2012 03:53:10 +0300] rev 57
- Fixed: else was alloed even without if strictly preceding it
- 2012-08-25
- by Teemu Piippo <crimsondusk64@gmail.com> [Sat, 25 Aug 2012 03:40:36 +0300] rev 56
- Added support for else-statements
- 2012-08-25
- by Teemu Piippo <crimsondusk64@gmail.com> [Sat, 25 Aug 2012 03:04:14 +0300] rev 55
- Added support for the ternary operator.
- 2012-08-13
- by Teemu Piippo <crimsondusk64@gmail.com> [Tue, 14 Aug 2012 01:54:17 +0300] rev 54
- Added floating point support for the most part. However, decimals are somehow lost during a cast..
- 2012-08-13
- by Teemu Piippo <crimsondusk64@gmail.com> [Tue, 14 Aug 2012 00:59:39 +0300] rev 53
- Added support for operators &&, ||, &, | and ^
- 2012-08-13
- by Teemu Piippo <crimsondusk64@gmail.com> [Tue, 14 Aug 2012 00:48:02 +0300] rev 52
- Added ! operator support. It's not really an operator since it's just checked at the beginning of the expression value but eh.
- 2012-08-13
- by Teemu Piippo <crimsondusk64@gmail.com> [Tue, 14 Aug 2012 00:20:59 +0300] rev 51
- Added <<= and >>= operator support. Zandronum does not provide these, thus they are translated to their longer forms by the compiler. Also aded << and >>.
- 2012-08-13
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 13 Aug 2012 23:10:39 +0300] rev 50
- Added default label for switch
- 2012-08-13
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 13 Aug 2012 19:12:21 +0300] rev 49
- rename ObjWriter::RecordBuffer to SwitchBuffer, as it is designed specifically for switch and will break if used genericly
- 2012-08-13
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 13 Aug 2012 19:04:29 +0300] rev 48
- Added switch support... fixed more problems with marks in the process
- 2012-08-12
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 12 Aug 2012 04:45:27 +0300] rev 47
- some cleanup
- 2012-08-12
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 12 Aug 2012 04:40:33 +0300] rev 46
- Expressions now allow multiple operators
- 2012-08-12
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 12 Aug 2012 04:13:27 +0300] rev 45
- Removed mark types as they served absolutely zero purpose
- 2012-08-12
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 12 Aug 2012 04:10:25 +0300] rev 44
- Added do-while loop support
- 2012-08-12
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 12 Aug 2012 03:23:33 +0300] rev 43
- Added for-loop support
- 2012-08-11
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 12 Aug 2012 01:52:42 +0300] rev 42
- FINALLY, marks and references work smoothly without hacks. if and while work properly.
- 2012-08-11
- by Teemu Piippo <crimsondusk64@gmail.com> [Sat, 11 Aug 2012 19:35:47 +0300] rev 41
- Added while loop support. However, script marks keep getting wrong position numbers..
- 2012-07-30
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 30 Jul 2012 11:34:57 +0300] rev 40
- Committed the other changes done during a failed attempt of else
- 2012-07-30
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 30 Jul 2012 11:14:02 +0300] rev 39
- Fixed mark positioning - multiple if statements should work properly now
- 2012-07-30
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 30 Jul 2012 03:38:02 +0300] rev 38
- Added if() support
- 2012-07-29
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 29 Jul 2012 16:55:32 +0300] rev 37
- Added mark/reference system to be able to refer to positions in the buffered bytecode. Labels and go-to support.
- 2012-07-29
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 29 Jul 2012 04:02:07 +0300] rev 36
- Parser can now read expressions 100% properly and can perform variable assignment. I'd call this a milestone!
- 2012-07-28
- by Teemu Piippo <crimsondusk64@gmail.com> [Sat, 28 Jul 2012 17:57:37 +0300] rev 35
- Negative literal integers work properly now..
- 2012-07-28
- by Teemu Piippo <crimsondusk64@gmail.com> [Sat, 28 Jul 2012 17:41:24 +0300] rev 34
- Expression parser mostly up and running!! Still work to do on it though.
- 2012-07-17
- by Teemu Piippo <crimsondusk64@gmail.com> [Tue, 17 Jul 2012 20:35:43 +0300] rev 33
- 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..
- 2012-07-16
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 16 Jul 2012 16:15:16 +0300] rev 32
- - The output cmd-line argument is now optional - one is generated from the input file if not given.
- All data is now buffered before being written into the file. This way, no incomplete data is written in case an error occurrs.
- 2012-07-16
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 16 Jul 2012 04:33:09 +0300] rev 31
- 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
- 2012-07-16
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 16 Jul 2012 04:26:27 +0300] rev 30
- Negative numbers are now considered numbers too...
- 2012-07-16
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 16 Jul 2012 04:15:49 +0300] rev 29
- Moved CharByte inside DataBuffer since that's where it belongs anyway.
- 2012-07-16
- by Teemu Piippo <crimsondusk64@gmail.com> [Mon, 16 Jul 2012 04:07:15 +0300] rev 28
- Added comment support
- 2012-07-15
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 15 Jul 2012 19:01:47 +0300] rev 27
- Rid the qbyte type as I just use long everywhere anyway
- 2012-07-15
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 15 Jul 2012 18:56:26 +0300] rev 26
- 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 :)
- 2012-07-15
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 15 Jul 2012 03:31:35 +0300] rev 25
- Fixed unary operators..
- 2012-07-15
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 15 Jul 2012 03:24:46 +0300] rev 24
- Variables can now be assigned values, unfortunately not at top level.
- 2012-07-14
- by Teemu Piippo <crimsondusk64@gmail.com> [Sun, 15 Jul 2012 00:32:26 +0300] rev 23
- Forgot the actual new code files out of previous commit