Joshua Warner
d2dcb462c7
Rename State::pos -> xyzlcol, temporarily
2022-01-01 18:20:05 -08:00
Joshua Warner
8b58d5cbc7
Switch to always encoding package names / paths as strings
...
This will simplify parsing and make it possible to have a uniform lexer for the language. Previously unquoted package names were allowed to include '-'s, which aren't valid identifiers.
In the future, we'll distinguish local paths from packages in the package-manager by looking for a ".roc" suffix, which should only be present in local paths.
2021-12-23 20:11:14 -08:00
Joshua Warner
22e2545fd6
format
2021-12-22 20:46:42 -08:00
Joshua Warner
4d7070ce3b
Always combine line,column into Position
2021-12-22 20:32:46 -08:00
Joshua Warner
49818343dd
extract state
2021-12-16 17:13:53 -08:00
Joshua Warner
0786e554c6
Extract spacing from parse::header::* items into explicit Spaced enum
2021-12-14 19:53:20 -08:00
Jan Van Bruggen
d03a51c75b
Rename base
package to pf
everywhere, to match tutorial
2021-12-12 05:57:39 -07:00
Joshua Warner
f25323e8a7
Implement platform header formatting
2021-11-25 08:19:31 -08:00
Joshua Warner
24f7692a73
Implement [more] app header formatting
...
Also, refactor out a utility method to format a Collection. This method can currently
replace some of the formatting done in module headers - but the goal is eventually
to be able to replace the code in fmt_list as well, such that there is 'one true way'
to format collections.
2021-11-23 12:19:43 -08:00
Joshua Warner
6c82b1789a
Convert effects to collection_trailing_sep_e
2021-11-14 10:14:53 -08:00
Joshua Warner
8c8bc910fd
Convert exposes_modules to collection_trailing_sep_e
2021-11-14 10:14:53 -08:00
Joshua Warner
c4e70ca7aa
Convert exposes_values to ccollection_trailing_sep_e
2021-11-14 10:14:53 -08:00
Joshua Warner
71cc8d4c4b
Convert requires_rigids to collection_trailing_sep_e
2021-11-14 10:14:53 -08:00
Joshua Warner
df89fe7dd6
Make provides a Collection
2021-11-14 10:14:53 -08:00
Joshua Warner
23c75d2699
Allow trailing comments in imports decl
2021-11-14 10:14:53 -08:00
Joshua Warner
c10f403c94
Allow trailing comments in exposes decl
2021-11-14 10:14:52 -08:00
Joshua Warner
4df0880e7a
Commit local changes (whoops!)
2021-11-11 18:57:26 -08:00
Joshua Warner
6a694b7772
Use collection_trailing_sep_e for packages decl, to allow trailing commas there
2021-11-10 18:49:19 -08:00
Folkert
d4896d3ed2
remove inlinable_string dependency
2021-08-03 21:24:19 +02:00
Folkert
c68cd2fb2d
fix and test
2021-04-14 22:03:03 +02:00
Folkert
64bc92c746
basic parsing
2021-04-14 13:03:31 +02:00
Folkert
1977e36459
accept comments before the header
2021-04-11 17:14:48 +02:00
Richard Feldman
eadb28b95d
Replace a bunch of Into impls with Froms
2021-03-26 08:39:01 -04:00
Folkert
d2482246f2
clippy
2021-03-10 01:10:38 +01:00
Folkert
2773639c7b
port header parsing
2021-03-10 01:06:50 +01:00
Folkert
4b8f5fb477
cleanup
2021-03-10 00:26:54 +01:00
Folkert
3eddedc566
port effects
2021-03-09 21:53:23 +01:00
Folkert
98a3d42eff
checkpoint 2
2021-02-26 20:41:42 +01:00
Folkert
38b21c3474
add lifetime to SyntaxError
2021-02-07 22:26:55 +01:00
Folkert
148fffe969
parameterize Parser on an Error type
2021-02-07 22:08:28 +01:00
Folkert
59f547b2be
fix trailing whitespace
2021-02-03 23:06:18 +01:00
Folkert
8c6a9c4144
working state
2021-02-03 22:32:27 +01:00
Folkert
56f6770804
WIP
2021-02-02 01:56:50 +01:00
Folkert
ac3788ba85
fix tests
2021-01-31 18:51:12 +01:00
Folkert
6f394aef08
notify when base
and fx
are available
2021-01-31 15:55:30 +01:00
Folkert
42bb5fc8fd
make Effects Send
2021-01-31 14:41:06 +01:00
Folkert
53afa3c3fc
parse a shortname prefix before Effects
2021-01-31 13:43:19 +01:00
Richard Feldman
b70f265242
Reproduce inability to parse pkg-qualified imports
2020-11-26 21:07:45 -05:00
Richard Feldman
1868051105
Allow for shorter app headers
2020-11-23 00:08:50 -05:00
Richard Feldman
a78434fd48
Finish introducing new header keywords
2020-11-23 00:08:49 -05:00
Richard Feldman
dfa61b4c18
Parse platform headers
2020-10-18 23:55:49 -04:00
Richard Feldman
313b7a79e8
Use workspaces and move everything into compiler/
2020-03-05 17:45:52 -05:00