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
|
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
|
1bda862266
|
[scoper/errors] include InfixError
|
2022-02-14 09:05:34 +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 |
|
Jan Mas Rovira
|
fdd5a0391d
|
[html] add light theme; add cli option to pick theme
|
2022-02-05 23:15:42 +01:00 |
|
Jan Mas Rovira
|
bfb800052a
|
[parser] parse infix operators between parens as non infix operators
|
2022-02-05 19:09:36 +01:00 |
|
Jan Mas Rovira
|
1919c32417
|
[html] improve html pretty printing
|
2022-02-05 13:27:33 +01:00 |
|
Jan Mas Rovira
|
b48f00556a
|
[pretty] add simple html output with links
|
2022-02-04 23:14:06 +01:00 |
|
Jan Mas Rovira
|
c7461342de
|
[html] start working towards html pretty printing
|
2022-02-04 13:31:38 +01:00 |
|
Jan Mas Rovira
|
7510cd2240
|
[pretty] group infix declaration with symbol definition
|
2022-02-03 23:59:40 +01:00 |
|
Jan Mas Rovira
|
4d14338c30
|
[pretty] improve parentheses for patterns. Apply other small improvements
|
2022-02-03 23:52:51 +01:00 |
|
Jan Mas Rovira
|
6307c7bdc0
|
[pretty] parentheses take precedence and associativity into account
|
2022-02-03 19:51:20 +01:00 |
|
Jan Mas Rovira
|
aea7208d88
|
[pretty] improve parentheses wip
|
2022-02-03 13:47:43 +01:00 |
|
Jan Mas Rovira
|
0dedbaf76d
|
[scoper] fix scoper bug
|
2022-02-03 11:33:34 +01:00 |
|
Jan Mas Rovira
|
12d4fbf8fd
|
[scoper] fix modules cache
|
2022-02-03 10:24:43 +01:00 |
|
Jan Mas Rovira
|
0be571067c
|
[scoper] wip 5
|
2022-02-03 01:59:05 +01:00 |
|