Commit Graph

24 Commits

Author SHA1 Message Date
Deukhoofd 0fbca3f01e
Fixes for tests, support for comments.
continuous-integration/drone/push Build is passing Details
2021-01-09 13:43:29 +01:00
Deukhoofd 59af34fac9
Rework text spans a bit to include script file, make binder log an error when two classes have a circular value reference.
continuous-integration/drone/push Build is failing Details
2021-01-09 13:20:56 +01:00
Deukhoofd 093ffde6bc
Initial work on type registration in the binder.
continuous-integration/drone/push Build is passing Details
2021-01-08 16:14:02 +01:00
Deukhoofd 034dcb118b
Fixes issue in lexing numerical base consuming character after it, removes test for invalid numerical base.
continuous-integration/drone/push Build is passing Details
2021-01-06 11:48:24 +01:00
Deukhoofd cf8d6ce18b
When an integer starts with a 0, and is followed by a non numerical symbol just lex it as a 0 literal, followed by another token.
continuous-integration/drone/push Build is failing Details
2021-01-06 00:53:02 +01:00
Deukhoofd 807fe63828
More detailed error messages for lex errors.
continuous-integration/drone/push Build is passing Details
2021-01-06 00:25:08 +01:00
Deukhoofd 2327134e36
Fixes issue where string lex token position start would be off by one.
continuous-integration/drone/push Build is passing Details
2021-01-06 00:08:47 +01:00
Deukhoofd bfe27ec20f
Better handling of diagnostics in the REPL.
continuous-integration/drone/push Build is passing Details
2021-01-05 18:17:40 +01:00
Deukhoofd ee53e7abd8
Fixes issue in the lexer where most tokens had the wrong textspan. 2021-01-02 19:08:46 +01:00
Deukhoofd 9109b7513a
Implements very simple REPL, fixes several issues found with it.
continuous-integration/drone/push Build is failing Details
2021-01-02 17:41:53 +01:00
Deukhoofd 5fb64e12e1
Large chunk of work in parser for getting expressions to work.
continuous-integration/drone/push Build is passing Details
2020-11-08 15:41:18 +01:00
Deukhoofd 14db160890
Fixes fallthrough in lexer on initial bytes of Byte order mark (\xEF), but not the following ones. 2020-11-01 13:42:46 +01:00
Deukhoofd dcb6c58f90
Fixed some low hanging fruit in performance. 2020-10-09 12:55:49 +02:00
Deukhoofd 2fb1b68ead
Rework identifier handling, adds typedef statement. 2020-10-08 19:53:02 +02:00
Deukhoofd 2036f1ce43
Initial work on parsing. 2020-10-07 22:11:18 +02:00
Deukhoofd f299d5183f
Renames project. 2020-10-05 17:45:00 +02:00
Deukhoofd 125bb8459c
Support adding filename to diagnostic. 2020-10-05 12:18:05 +02:00
Deukhoofd dffc0d7f17
When getting base from first two values of a number, check both lowercase and uppercase. 2020-10-04 23:16:37 +02:00
Deukhoofd 739e2e6f17
Use block allocator for lexer. 2020-10-04 22:21:20 +02:00
Deukhoofd 469c708788
Fixes bug in identifier/keyword parsing, adds lexer integration tests. 2020-10-04 21:05:51 +02:00
Deukhoofd b6a5e047c2
Support for diagnostics system. 2020-10-04 19:38:13 +02:00
Deukhoofd 20976010d6
Lex identifiers and keywords. 2020-10-04 18:30:53 +02:00
Deukhoofd db7ad0bd76
Implements string lexing. 2020-10-04 17:15:28 +02:00
Deukhoofd e0c52f4ae7
Initial commit, support for lexing symbols and numericals. 2020-10-04 16:33:12 +02:00