Commit graph

22 commits

Author SHA1 Message Date
Thomas Lindner fb3de57c08 uppercase typenames, lowercase identifiers 2023-01-13 00:09:14 +01:00
Thomas Lindner 3f3f323898 avoid recursion and ambiguity 2023-01-13 00:07:51 +01:00
Thomas Lindner 61dbff27b3 better loop control 2023-01-07 17:43:25 +01:00
Thomas Lindner ddd7fb0467 add C style for loop 2023-01-07 17:10:03 +01:00
Thomas Lindner 1c4022cebc add increment/decrement operators 2023-01-07 16:07:24 +01:00
Thomas Lindner 80643b910c make definitions/assignments expressions 2023-01-07 15:23:02 +01:00
Thomas Lindner 514ebfa25a add loop control statements 2023-01-07 09:56:27 +01:00
Thomas Lindner 919a9f255b add remainder operation 2023-01-07 09:56:04 +01:00
Thomas Lindner 56330a54ad mark compilerError as noreturn 2023-01-07 09:12:47 +01:00
Thomas Lindner f169088f36 type checking 2023-01-07 08:54:53 +01:00
Thomas Lindner 4f3d1d2f2e cleanup 2023-01-06 18:56:53 +01:00
Thomas Lindner c7a4effaab add boolean variables/arguments/return values (w/o type checking) 2023-01-06 18:46:45 +01:00
Thomas Lindner 9d14c30d81 add boolean and bit operations 2023-01-06 17:44:57 +01:00
Thomas Lindner f4ed3e2754 dont complain about argument number of unknown functions 2023-01-06 04:03:43 +01:00
Thomas Lindner 2d4f4c5bd5 "type checking" 2023-01-06 03:56:33 +01:00
Thomas Lindner 49b0f214a6 handle lexer errors in parser 2023-01-05 21:22:28 +01:00
Thomas Lindner 2d0c688aa0 fail on parsing errors 2023-01-05 21:12:15 +01:00
Thomas Lindner d46f7fb91f use less temporaries 2023-01-05 19:52:27 +01:00
Thomas Lindner 577581f2ce cleanup 2023-01-05 19:37:22 +01:00
Thomas Lindner 2b79d9bdb2 fix "else" 2023-01-05 18:30:43 +01:00
Thomas Lindner 0d5baf46a3 intermediate language generation 2023-01-05 17:44:30 +01:00
Thomas Lindner 529e491ab6 simple compiler (most intermediate language generation missing) 2023-01-04 23:32:55 +01:00