Nocturn9x
|
f80ac42101
|
Minor changes to error message for missing initializer in constant declaration
|
2021-10-29 10:51:27 +02:00 |
Nocturn9x
|
d905f319b2
|
Ehnanced generator detection code
|
2021-10-29 10:34:07 +02:00 |
Nocturn9x
|
48087419b2
|
Improved error handling and parsing for try statements
|
2021-10-29 09:54:38 +02:00 |
Nocturn9x
|
73020fd48b
|
Added exception handling parse handlers and slicing support
|
2021-10-28 15:48:23 +02:00 |
Nocturn9x
|
c1a0ecca91
|
Minor reordering and numerous small fixes to grammar. Added try/except/finally/else syntax
|
2021-10-28 09:57:03 +02:00 |
Nocturn9x
|
dc7c6b5f6d
|
Added parser support for the 'defer' keyword
|
2021-10-27 18:47:16 +02:00 |
nocturn9x
|
16f1ffb7d0
|
Added lambda functions as expressions. Added 'as', 'is' and 'of' binary operators. Added collection literals. Renamed isLiteral to isConstant to better reflect usage. Added isLiteral for all literals, including collections. Fixed some edge cases with nested function scopes. Simplified some representation of AST nodes
|
2021-10-24 19:08:17 +02:00 |
nocturn9x
|
e6dbc3cad6
|
Added 'is', 'as' and 'of'
|
2021-10-24 17:01:03 +02:00 |
nocturn9x
|
d0a252e13c
|
Fixed assignment expression, made lambda an expression
|
2021-10-24 16:39:32 +02:00 |
Nocturn9x
|
151b8da0d5
|
Initial (semi-broken) support for await and yield statements/expressions. Minor changes to the lexer and grammar
|
2021-10-25 11:50:12 +02:00 |
Nocturn9x
|
74b8328bf7
|
Implemented yield expressions vs yield statements
|
2021-10-23 12:58:23 +02:00 |
Nocturn9x
|
118b8e5ffc
|
Added differentiation between yield statement and yield expressions and added missing semicolon to delStmt
|
2021-10-23 12:46:11 +02:00 |
Nocturn9x
|
7dc9ea17d5
|
Fixed assignment bug
|
2021-10-23 12:44:05 +02:00 |
Nocturn9x
|
73c00ab4ea
|
Added missing '?' grammar rule for import statements
|
2021-10-23 12:00:26 +02:00 |
Nocturn9x
|
7a80bb071f
|
Fixed grammar rule for import statements
|
2021-10-23 11:59:42 +02:00 |
Nocturn9x
|
ef8a26492a
|
Added checks for break and continue outside loops in the parser + some minor fixes/typos
|
2021-10-23 11:55:48 +02:00 |
Nocturn9x
|
8070803d05
|
Generalized errors and moved them to src/meta/errors.nim. Further work in the compiler
|
2021-10-23 11:48:52 +02:00 |
Nocturn9x
|
7237141ec1
|
Parser bugfixes + small changes in initializer methods for parser and compiler. Added generic error type for NimVM parsing exceptions
|
2021-10-23 09:12:05 +02:00 |
Nocturn9x
|
4ad34f30e4
|
Laid groundwork for the compiler
|
2021-10-23 09:00:16 +02:00 |
Nocturn9x
|
941a5221ad
|
Extended bytecode spec with notes on various types
|
2021-10-22 09:39:28 +02:00 |
Nocturn9x
|
a75342d27b
|
Added headers
|
2021-10-20 16:25:56 +02:00 |
Nocturn9x
|
9580dc3745
|
Fixed missing quotes around declaration modifier
|
2021-10-20 16:17:26 +02:00 |
Nocturn9x
|
06b57f143a
|
Fixed missing verb
|
2021-10-20 16:10:59 +02:00 |
Nocturn9x
|
b9ed2d1410
|
Fixed unix epoch time
|
2021-10-20 16:09:51 +02:00 |
Nocturn9x
|
9043af131a
|
Fixed missing article in sentence
|
2021-10-20 16:06:59 +02:00 |
Nocturn9x
|
602c7e8c57
|
Laid out initial bytecode spec
|
2021-10-21 12:22:37 +02:00 |
nocturn9x
|
a2f9456de4
|
Removed support for the let keyword. Made the optimizer act in-place in most cases. Constant declarations now require initialization. Slight changes to main.nim due to changes in the optimizer
|
2021-10-16 17:50:31 +02:00 |
Nocturn9x
|
2e42e0fcb9
|
Slightly optimized constant folding of block statements
|
2021-10-15 15:46:27 +02:00 |
Nocturn9x
|
31c6f300fa
|
Added constant folding for default arguments in function declarations
|
2021-10-15 15:33:12 +02:00 |
Nocturn9x
|
13efaa5e17
|
Added constant folding for string multiplication
|
2021-10-15 15:19:23 +02:00 |
Nocturn9x
|
f2cc2d0ef4
|
Edited docstring for Lexer.error()
|
2021-10-05 10:15:10 +02:00 |
nocturn9x
|
69e20e4446
|
Made yield expressions more consistent and allowed them as default arguments in function declarations. Fixed parser bug with nil assignments and added a warning about dynamic const declarations in the optimizer
|
2021-10-04 14:01:21 +02:00 |
nocturn9x
|
a9c09bd585
|
Optimizer now folds constants in function calls. Added constant folding for string addition
|
2021-10-01 10:06:02 +02:00 |
nocturn9x
|
7f8574cbba
|
\r\n is no longer automatically converted to \n or \r on non-windows platforms
|
2021-10-01 09:47:00 +02:00 |
nocturn9x
|
4a06f9cbf2
|
Added LF conversion for darwin
|
2021-09-30 18:46:33 +02:00 |
nocturn9x
|
12f388949c
|
Updated readme
|
2021-09-28 18:14:41 +02:00 |
nocturn9x
|
b3b7b29045
|
Updated readme
|
2021-09-28 18:12:35 +02:00 |
nocturn9x
|
e0701d8d9a
|
Added missing bitwise operators to parser. Added missing string representation for singletons AST nodes. Improved and bugfixed optimizer
|
2021-09-28 18:07:08 +02:00 |
nocturn9x
|
3fcdb3ec0a
|
Better over- and underflow handling in the optimizer
|
2021-09-27 19:33:37 +02:00 |
nocturn9x
|
89f57b4c07
|
Added main.nim (finally)
|
2021-09-27 19:30:11 +02:00 |
nocturn9x
|
04cbe291c8
|
Removed main.nim from gitignore
|
2021-09-27 19:30:00 +02:00 |
nocturn9x
|
63bbf63e3e
|
More binary operation support for the optimizer
|
2021-09-27 19:29:45 +02:00 |
nocturn9x
|
6625eda5ee
|
Started to work on the optimizer and added skeleton for utility module
|
2021-09-27 17:45:26 +02:00 |
nocturn9x
|
6b921342e4
|
Updated gitignore
|
2021-09-27 15:50:32 +02:00 |
nocturn9x
|
342c3125b8
|
Removed accidentally pasted rule from text
|
2021-09-27 15:48:26 +02:00 |
nocturn9x
|
1dbc0bb81c
|
Completely redesigned the AST structure: parsing is almost complete. Formal spec should be mostly fine as well
|
2021-09-26 16:26:36 +02:00 |
nocturn9x
|
a2caa6214f
|
Completely rewrote AST with a less flexible, but easier to read and understand design
|
2021-09-14 16:14:48 +02:00 |
nocturn9x
|
3b287aad7f
|
Added 'yield' expression support
|
2021-09-14 16:12:48 +02:00 |
nocturn9x
|
a11e5cfb11
|
Removed '!' token and fixed duplicate 'inf' entry in keywords table. Removed TokenType.Inf in favor of TokenType.Infinity and renamed TokenType.NaN to TokenType.NotANumber
|
2021-09-14 11:05:41 +02:00 |
nocturn9x
|
63e2912d81
|
Removed 'dynamic' keyword
|
2021-09-14 11:00:50 +02:00 |