Jan Mas Rovira
|
a8d7f183b8
|
[tests] add test for parenthesized operators: (+)
|
2022-02-23 10:59:56 +01:00 |
|
Jan Mas Rovira
|
b2d80e8e2c
|
[abstract] finish basic translation from scoped to abstract
|
2022-02-23 10:58:37 +01:00 |
|
Jan Mas Rovira
|
655fc89eb3
|
[abstract] wip: translate from scoped to abstract
|
2022-02-22 14:36:59 +01:00 |
|
Jan Mas Rovira
|
7a421aa9e0
|
drop TupleSections language extension
|
2022-02-21 19:21:03 +01:00 |
|
Jan Mas Rovira
|
13279f7b47
|
[tests] fix some comments
|
2022-02-21 16:38:39 +01:00 |
|
Jan Mas Rovira
|
3124052807
|
[tests] add more positive tests from the stdlib
|
2022-02-18 22:02:57 +01:00 |
|
Jan Mas Rovira
|
d3e060af52
|
[pretty] print match alt patterns as atoms
|
2022-02-18 21:52:19 +01:00 |
|
Jan Mas Rovira
|
8629ccee53
|
[scoper] properly sort operators by precedence
|
2022-02-18 21:51:53 +01:00 |
|
Jan Mas Rovira
|
3ead694533
|
[tests] add test for a fragment of stdlib Data.List
|
2022-02-18 17:57:04 +01:00 |
|
Jan Mas Rovira
|
ff4dd470f0
|
[errors] fix suggestion of not in scope symbol
|
2022-02-18 17:49:22 +01:00 |
|
Jan Mas Rovira
|
bdd155d712
|
[tests] add support for mocked file system in scope checker. Useful for multi
file tests
|
2022-02-18 17:48:21 +01:00 |
|
Jan Mas Rovira
|
45e3e2ca35
|
move some auxiliar definitions to the Prelude
|
2022-02-18 17:47:41 +01:00 |
|
Jan Mas Rovira
|
df39676db8
|
remove unused file
|
2022-02-18 16:02:40 +01:00 |
|
Jan Mas Rovira
|
09bf131990
|
[tests] setup step-wise positive tests
|
2022-02-18 13:01:42 +01:00 |
|
Jan Mas Rovira
|
3b9b4ab43a
|
[scoper] improve efficiency of infix parsing. Drop uniplate dependency
|
2022-02-18 11:14:17 +01:00 |
|
Jan Mas Rovira
|
4651906e32
|
[scoper] use atoms information instead of scope to parse infix operators
|
2022-02-18 01:53:10 +01:00 |
|
Jan Mas Rovira
|
85601c6332
|
[scoper] properly handle qualified constructors in patterns
|
2022-02-18 00:58:41 +01:00 |
|
Jan Mas Rovira
|
393f907a51
|
[scoper] add error for unused operator syntax definitions
|
2022-02-17 22:00:58 +01:00 |
|
Jan Mas Rovira
|
cf166596f4
|
[app] allow scoping multiple files at once
|
2022-02-17 19:28:19 +01:00 |
|
Jan Mas Rovira
|
9fa875c242
|
[scoper] add megaparsec error
|
2022-02-17 14:01:50 +01:00 |
|
Jan Mas Rovira
|
e55680bfec
|
[scoper] add module not in scope error
|
2022-02-17 13:40:19 +01:00 |
|
Jan Mas Rovira
|
f3956f5fcd
|
simplify SymbolEntry
|
2022-02-17 11:09:00 +01:00 |
|
Jan Mas Rovira
|
4ffc7f368d
|
[wip] incorporate singletons-th
|
2022-02-16 20:15:14 +01:00 |
|
Jan Mas Rovira
|
add1b6e689
|
[tests] add more errors and their tests
|
2022-02-16 15:18:08 +01:00 |
|
Jan Mas Rovira
|
ee1ed2d385
|
[pretty] cool error for import cycles
|
2022-02-16 11:53:58 +01:00 |
|
Jan Mas Rovira
|
5a4c6366dd
|
add HasLoc class and add some instances
|
2022-02-16 11:53:21 +01:00 |
|
Jan Mas Rovira
|
d91e35ab0f
|
[deps] add tasty dependency to lib to avoid rebuilding when testing
|
2022-02-16 10:03:49 +01:00 |
|
Jan Mas Rovira
|
7fe533bf8b
|
[pretty] fix links to definition (broken by previous refactor)
|
2022-02-16 09:43:45 +01:00 |
|
Jan Mas Rovira
|
96930352aa
|
[tests] setup basic testing
|
2022-02-15 14:12:53 +01:00 |
|
Jan Mas Rovira
|
aa91f2225a
|
small changes
|
2022-02-14 20:04:06 +01:00 |
|
Jan Mas Rovira
|
0856327658
|
[errors] add not in scope error
|
2022-02-14 13:39:54 +01:00 |
|
Jan Mas Rovira
|
d2e07b9c43
|
[errors] add more errors and tests
|
2022-02-14 11:54:18 +01:00 |
|
Jan Mas Rovira
|
586ef64f90
|
[scoper] add more errors
|
2022-02-14 11:35:07 +01:00 |
|
Jan Mas Rovira
|
4dcf8d9e81
|
[pretty] given instances for Pretty
|
2022-02-14 11:34:30 +01:00 |
|
Jan Mas Rovira
|
cbc9a409ca
|
[tests] add two negative tests to check new errors
|
2022-02-14 09:06:11 +01:00 |
|
Jan Mas Rovira
|
1bda862266
|
[scoper/errors] include InfixError
|
2022-02-14 09:05:34 +01:00 |
|
Jan Mas Rovira
|
5929172e1e
|
[package] remove unused 'word8' dependency
|
2022-02-13 12:30:20 +01:00 |
|
Jan Mas Rovira
|
e8c46040b0
|
[pretty] refactor to use PrettyCode type class extensively
|
2022-02-13 12:02:57 +01:00 |
|
Jan Mas Rovira
|
edd47ad00b
|
[pretty] implement pretty printer for parsed AST
|
2022-02-12 17:35:23 +01:00 |
|
Jan Mas Rovira
|
6da7dd8b30
|
add unified minijuvix errors
|
2022-02-12 12:29:25 +01:00 |
|
Jan Mas Rovira
|
a2f16ef371
|
[errors] setup some ground for prettier errors
|
2022-02-11 19:12:48 +01:00 |
|
Jan Mas Rovira
|
92c47d5dff
|
[parser] wip: add location to concrete AST
|
2022-02-11 13:40:49 +01:00 |
|
Jan Mas Rovira
|
a41576a790
|
implement parsing and scoping of module parameters
|
2022-02-10 19:39:51 +01:00 |
|
Jan Mas Rovira
|
f7d9c9cd2f
|
[parser] parse module parameters
|
2022-02-09 14:59:29 +01:00 |
|
Jan Mas Rovira
|
04b0ae25ed
|
draft abstract syntax
|
2022-02-08 19:35:47 +01:00 |
|
Jan Mas Rovira
|
f82c3f68f7
|
[scoper] fix scoping of function clauses inside a where block
|
2022-02-07 01:24:41 +01:00 |
|
Jan Mas Rovira
|
672d6750f6
|
[parser] add & to accepted symbol characters
|
2022-02-07 01:20:31 +01:00 |
|
Jan Mas Rovira
|
22d4b97b99
|
[parser] add , to accepted symbol characters
|
2022-02-07 00:53:25 +01:00 |
|
Jan Mas Rovira
|
92c4bb3c81
|
[scoper] fix: make local vars visible in where clauses
|
2022-02-07 00:37:03 +01:00 |
|
Jan Mas Rovira
|
80dfd83435
|
[scoper] handle open modules in where clauses
|
2022-02-06 23:52:47 +01:00 |
|