1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-22 01:31:33 +00:00
Commit Graph

54 Commits

Author SHA1 Message Date
Curtis F Kaylor
6703c8cb10 Allow expressions in second and third function argument 2019-10-27 22:42:37 -04:00
Curtis F Kaylor
223f7bbb97 Added Resume statement 2019-10-27 22:39:41 -04:00
Curtis F Kaylor
2b5f96c7d0 Added CPU Type and Numeric Literal String Escapes 2019-10-27 22:37:20 -04:00
Curtis F Kaylor
71e15fb2d8 Fixed bug parsing integer literals 2019-05-27 17:10:33 -04:00
Curtis F Kaylor
d08e23d8d0 Allow & operator to work with Labels 2019-05-18 22:24:30 -04:00
Curtis F Kaylor
2f297edbcd Renamed internal label constants 2019-05-18 20:59:49 -04:00
Curtis F Kaylor
0150493748 Implemented Indirect Goto 2019-05-18 12:19:47 -04:00
Curtis F Kaylor
b6cec4d75a Allow int members in structs 2019-05-12 23:34:47 -04:00
Curtis F Kaylor
2530f3ed1e Modified function calls to implicitly pass address for arrays and structs 2019-05-05 21:16:06 -04:00
Curtis F Kaylor
57b8e6f1e0 Changed Variable Table from synchronized arrays to array of structs 2019-05-05 18:37:19 -04:00
Curtis F Kaylor
28960cbcfa Allow comments inside struct definitions 2019-05-05 18:10:26 -04:00
Curtis F Kaylor
e87b4e9b44 Changed placeholder from asterisk to question mark 2019-05-04 21:56:00 -04:00
Curtis F Kaylor
c9a4f76d49 Allow skipping of sequences in ENUM and BITMASK 2019-05-03 18:49:46 -04:00
Curtis F Kaylor
dd4debeaaf Added Integer Variables and Bitmask Enums 2019-05-03 17:35:15 -04:00
Curtis F Kaylor
7252710f70 Modified compiler to allow multiple include subdirecties 2019-03-29 19:09:41 -04:00
Curtis F Kaylor
200096f83f Allowed declaration of functions with type int 2019-03-24 16:37:14 -04:00
Curtis F Kaylor
076586be05 Added stub code to compiler for indirect goto 2019-03-22 19:35:28 -04:00
Curtis F Kaylor
0ad6894a5b Allow address as target of goto 2018-12-03 16:27:25 -05:00
Curtis F Kaylor
903921638e Allow structs to have structs as members 2018-11-07 00:13:29 -05:00
Curtis F Kaylor
330ed1285a Added -s command line option to compiler 2018-09-09 16:10:21 -04:00
Curtis F Kaylor
ba25988b31 Added #pragma rambase & writebase directives 2018-08-16 16:26:44 -04:00
Curtis F Kaylor
a585edd806 Allow const arrays larger than 256 bytes 2018-08-14 14:51:04 -04:00
Curtis F Kaylor
b6b84aaa9b Break long data statements into multiple lines 2018-08-05 21:23:51 -04:00
Curtis F Kaylor
0c9d6b4691 Added mixed array initializations 2018-08-04 21:39:58 -04:00
Curtis F Kaylor
fe62927246 Added declaration modifier const 2018-08-03 16:38:20 -04:00
Curtis F Kaylor
de4124e3b3 Define constants using #define instead of const 2018-08-03 11:22:12 -04:00
Curtis F Kaylor
fb9f396240 Added logical operators 'and' and 'or' to conditionals 2018-08-02 03:13:01 -04:00
Curtis F Kaylor
44a763826b Added index-of operator for struct members 2018-07-30 13:03:54 -04:00
Curtis F Kaylor
93b8f5859f Fixed errors in compiler 2018-07-29 22:49:44 -04:00
Curtis F Kaylor
bcac483b88 Fixed bug: lower case letters not recognized as hex digits 2018-07-27 00:47:05 -04:00
Curtis F Kaylor
8334e75599 Declaring const in .h02 file no longer generates code 2018-07-26 13:39:13 -04:00
Curtis F Kaylor
cc82237782 Added #pragma padding directive 2018-07-24 00:30:00 -04:00
Curtis F Kaylor
7b15ce426f Allowed subscripted array element in function X return value 2018-07-21 22:23:10 -04:00
Curtis F Kaylor
eb90c48f0d Disallowed nested function declarations and commented more code 2018-07-21 20:51:41 -04:00
Curtis F Kaylor
f179acceb1 Commented code in expr.c 2018-07-21 19:15:07 -04:00
Curtis F Kaylor
0082eb3096 Fixed bug in string escape parsing & added escape sequences 2018-07-21 16:08:06 -04:00
Curtis F Kaylor
ca97762a9c Modified parsing to allow expressions in array indexes 2018-07-19 13:42:56 -04:00
Curtis F Kaylor
818174a15a Fixed break/continue bug in DO/WHILE loop 2018-07-18 23:49:39 -04:00
Curtis F Kaylor
a81afb538d Cleaned up debug output: 2018-03-15 23:46:52 -04:00
Curtis F Kaylor
8e49f69a9e Fixed chained IF/ELSE statements 2018-03-15 23:40:58 -04:00
Curtis F Kaylor
d5d4d79929 Added size-of operator 2018-03-08 20:07:31 -05:00
Curtis F Kaylor
cc6ef48b85 Added parsing of struct members 2018-03-08 14:35:00 -05:00
Curtis F Kaylor
f7f23059fe Refactored Struct definition code 2018-03-08 09:39:32 -05:00
Curtis F Kaylor
fd6a96afb5 Added struct declarations 2018-03-08 08:23:05 -05:00
Curtis F Kaylor
df34d89252 Replaced variables def??? with con??? 2018-03-07 12:32:08 -05:00
Curtis F Kaylor
1c4c2b4696 Removed #define and #enum directives 2018-03-07 12:10:23 -05:00
Curtis F Kaylor
4e421c8095 Added enum keyword 2018-03-07 12:00:33 -05:00
Curtis F Kaylor
ff9576b391 Added const keyword 2018-03-07 11:38:22 -05:00
Curtis F Kaylor
cf8264f99a Reformatted and refactored conditional code 2018-03-05 15:03:04 -05:00
Curtis F Kaylor
2126642205 Replaced fprintf & exterr with ERROR macro invocation 2018-03-04 14:14:37 -05:00