Anton-4
86c3eead71
fixed tokenization for line with only spaces
2022-02-02 19:42:51 +01:00
Anton-4
1b37aa8a3d
bugfixes + more tests
2022-02-02 19:28:37 +01:00
Anton-4
5e71120904
bugfixes, more tests
2022-02-02 14:31:35 +01:00
Anton-4
09eaa04e9a
tag union indentation fix
2022-02-02 12:23:32 +01:00
Anton-4
864298840c
bugfixes + more tests
2022-02-01 20:07:27 +01:00
Anton-4
f878f233a6
all tests passing
2022-02-01 15:55:42 +01:00
Anton-4
3ed1e39f3d
removed old precedence rules
2022-01-31 20:17:17 +01:00
Anton-4
173169c6e5
progress on cleaner operator precedence
2022-01-31 19:34:50 +01:00
Anton-4
533afe96cd
fixed indentation; all tests working
2022-01-30 15:58:26 +01:00
Anton-4
95cd5ebab3
fixed cli_echo, base64_test
2022-01-30 13:07:52 +01:00
Anton-4
4f186113ae
bugfixes, more tests
2022-01-29 20:32:07 +01:00
Anton-4
76e0f31dec
successful ConsList.roc parse
2022-01-29 14:39:06 +01:00
Anton-4
deb848da2d
fixed complex tag union annotation
2022-01-28 20:35:19 +01:00
Anton-4
2034de30a2
more tests
2022-01-26 20:00:44 +01:00
Anton-4
7e0647802b
fixed platform header
2022-01-26 16:50:01 +01:00
Anton-4
b4e2d921b9
fixed wrong apply parsing
2022-01-26 15:20:19 +01:00
Anton-4
8b0c6a77a5
indent bugfixes and more tests
2022-01-25 20:08:29 +01:00
Anton-4
7604a64716
fixed final tokeninzer, added Indent support to peg rules
2022-01-24 20:00:49 +01:00
Anton-4
65a706939c
debugging grammar
2022-01-22 18:58:28 +01:00
Anton-4
3047fc6845
grammar progress, made temp tokenizer
2022-01-21 20:32:28 +01:00
Anton-4
495e6b58d4
rust-peg grammar progress
2022-01-21 09:46:45 +01:00
Anton-4
dcbd1fb7f8
peg grammar progress
2022-01-19 19:52:01 +01:00
Anton-4
67e3eaf4cf
progress on rust-peg grammar
2022-01-17 20:17:04 +01:00
Anton-4
a51e98fd9a
rust-peg grammar progress
2022-01-15 19:47:06 +01:00
Anton-4
38cc6096a8
started on rust-peg grammar
2022-01-14 19:54:39 +01:00
Joshua Warner
d9cfa2b2a5
Remove unused State::fail method
2022-01-03 20:11:01 -08:00
Joshua Warner
352c7979eb
Re-enable debug_assert in State::advance
2022-01-03 20:10:53 -08:00
Joshua Warner
f22f96843e
Refactor ParseProblem
...
* Remove the `pos` field, which was always being assigned Position::default()
* Remove one use of this `pos`, by removing the never-used SyntaxError::ConditionFailed variant
* Adjust the other use to do what was probably intended - which is to say, pointing to the beginning of the def with the error
* Rename to FileError, reuse `SourceError` as an inner field, to avoid duplicating the `bytes`
2022-01-03 20:10:50 -08:00
Joshua Warner
650c29de3c
Change LineColumn::column to u32 to avoid overflow, and remove LineTooLong error
2022-01-02 21:50:42 -08:00
Joshua Warner
9557c234cb
Update recently added tests
2022-01-01 18:20:57 -08:00
Joshua Warner
8092f31a29
fmt
2022-01-01 18:20:05 -08:00
Joshua Warner
f969c7c6d0
Fixup rebase errors
2022-01-01 18:20:05 -08:00
Joshua Warner
5c1084c453
Introduce SourceError to represent an error + original source
2022-01-01 18:20:05 -08:00
Joshua Warner
8d6eb178b1
Fix multiline pattern heuristic
2022-01-01 18:20:05 -08:00
Joshua Warner
e97e5c3bd9
Fixup type annotations
2022-01-01 18:20:05 -08:00
Joshua Warner
cb8cf44596
fmt
2022-01-01 18:20:05 -08:00
Joshua Warner
70156b0a90
Simplify advancing
2022-01-01 18:20:05 -08:00
Joshua Warner
2901549422
Assert new column calculation is correct
2022-01-01 18:20:05 -08:00
Joshua Warner
422cdea112
Track line start separately
2022-01-01 18:20:05 -08:00
Joshua Warner
5ac3394a73
Remove pos tracking
2022-01-01 18:20:05 -08:00
Joshua Warner
08a33aab1b
Remove bytes tracking
2022-01-01 18:20:05 -08:00
Joshua Warner
beb0629e05
Track state in whitespace
2022-01-01 18:20:05 -08:00
Joshua Warner
a13c474f6b
Remove line tracking in parser
2022-01-01 18:20:05 -08:00
Joshua Warner
8e1241adea
Remove line/column fields
2022-01-01 18:20:05 -08:00
Joshua Warner
eb35e9914f
Fix tests
2022-01-01 18:20:05 -08:00
Joshua Warner
4b04ec6bbc
Add Position::offset, and recompute line/column info based on source
2022-01-01 18:20:05 -08:00
Joshua Warner
443d738f9b
Make Position::{line, column} fields private
2022-01-01 18:20:05 -08:00
Joshua Warner
721233f9c8
More incremental changes
2022-01-01 18:20:05 -08:00
Joshua Warner
1b257da356
Make State::xyzlcol a LineColumn, and change everything wanting a Position to use State::pos() instead
2022-01-01 18:20:05 -08:00
Joshua Warner
d2dcb462c7
Rename State::pos -> xyzlcol, temporarily
2022-01-01 18:20:05 -08:00