Folkert de Vries
e1d990896a
Merge branch 'trunk' into mono-display
2022-01-14 13:55:52 +01:00
Joshua Warner
6e67b77fa1
Remove awkward split between header_sources and defs sources
2022-01-13 19:34:17 -08:00
ayazhafiz
8d372edda1
Add config variables for printing IR during mono stages
2022-01-13 16:33:26 -05:00
ayazhafiz
e655ab7d3b
Module comments for reset-reuse
...
Figuring out what this module was doing, and why, took me a bit less
than half an hour. We should document what's happening for others in the
future so they don't need to follow up on Zulip necessarily.
2022-01-13 16:33:23 -05: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
8092f31a29
fmt
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
cb8cf44596
fmt
2022-01-01 18:20:05 -08:00
Joshua Warner
82d2be0635
Introduce LineColumnRegion and force conversion
2022-01-01 18:20:05 -08:00
ayazhafiz
966198a6e7
Coalesce inline and normal alias headers
...
Unifies `As` annotations and `Alias` defs to use a common struct for
defining alias header information, i.e. the name and type variables of
the alias.
2021-12-26 09:37:56 -06: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
Folkert de Vries
da6950d67d
Merge pull request #2270 from rtfeldman/remove-stale-todos
...
Remove stale todos in load tests
2021-12-24 00:02:48 +01:00
ayazhafiz
352754960f
Remove stale todos in load tests
...
These no longer seem to be issues.
2021-12-23 15:29:27 -06:00
Joshua Warner
f19220473a
Rename Located -> Loc
2021-12-22 19:18:22 -08:00
Joshua Warner
49818343dd
extract state
2021-12-16 17:13:53 -08:00
Joshua Warner
63056eeeac
Remove spaces from header 'Info' structs
2021-12-14 19:53:23 -08:00
Joshua Warner
0786e554c6
Extract spacing from parse::header::* items into explicit Spaced enum
2021-12-14 19:53:20 -08:00
Richard Feldman
01038ed53c
Merge pull request #2192 from rtfeldman/rename-base-to-pf
...
Rename `base` package to `pf` everywhere, to match tutorial
2021-12-14 22:00:22 -05:00
Joshua Warner
6fcdc46c03
Allow newlines in package entries
2021-12-12 20:33:35 -08:00
Jan Van Bruggen
d03a51c75b
Rename base
package to pf
everywhere, to match tutorial
2021-12-12 05:57:39 -07:00
Folkert
0052ccda38
cleanup in file.rs
2021-12-05 15:19:02 +01:00
Folkert
bb73ac94eb
remove unused struct type
2021-12-05 15:18:00 +01:00
Folkert
bb853a1a64
remove unused fields from State
2021-12-05 15:16:48 +01:00
Folkert
21ff434fe3
use unused values
2021-12-05 15:13:41 +01:00
Folkert
e0468363fb
remove headers_parsed
2021-12-05 15:13:32 +01:00
Folkert
0bdda2506c
add update mode to reset and reuse
2021-11-28 14:13:02 +01:00
Folkert
1241d5ccbd
make UpdateModeIds a proper type
2021-11-28 14:03:48 +01:00
Joshua Warner
f25323e8a7
Implement platform header formatting
2021-11-25 08:19:31 -08:00
Joshua Warner
f4e29bd267
Merge pull request #2069 from rtfeldman/joshuawarner32/impl-app-header-formatting
...
Implement [more] app header formatting
2021-11-25 07:24:06 -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
Brian Carroll
98474a500a
Add a list of starting points to get familiar with compiler code
2021-11-23 00:29:55 +00:00
Richard Feldman
763809805b
Drop unused alias info
2021-11-21 13:35:23 -05:00
Folkert
991420731d
rename function
2021-11-19 23:49:09 +01:00
Folkert
88a1a0fd40
rename variable
2021-11-19 23:30:12 +01:00
Folkert
71d2f1c17c
generate error message when main has unresolved type variables
2021-11-19 23:21:29 +01:00
Folkert
640b4e2d0b
cleanup
2021-11-19 22:25:37 +01:00
Folkert
74f073b3c6
use HostSpecializations from file.rs
2021-11-19 22:20:50 +01:00
Folkert
4a454eeb25
remove all_pending_specializations from file.rs State
2021-11-19 21:27:05 +01:00
ayazhafiz
8b7217847d
Rename additional stale roc_module::operator refs and format
2021-11-18 20:20:33 -05:00
ayazhafiz
8a60162a1e
Rename roc_module::operator -> roc_module::called_via
...
A bit of a nit, but this file is now more general than just keeping
track of operator methods.
2021-11-18 20:20:33 -05:00
Folkert
9aca302c39
Merge remote-tracking branch 'origin/trunk' into deep-copy-var-to
2021-11-18 13:16:24 +01:00
Folkert
f9c81bffe0
make external specializations more efficient
...
- create fewer Subs values
- don't merge Subs if not needed
2021-11-17 23:09:20 +01:00
Callum Dunster
f972098e70
Move reporting module into root.
2021-11-16 19:58:21 +01:00
Joshua Warner
6fab6e20f5
Fix clippy
2021-11-14 10:40:09 -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