mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00

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.
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
Platform {
|
|
header: PlatformHeader {
|
|
name: |L 0-0, C 9-25| PackageName(
|
|
"rtfeldman/blah",
|
|
),
|
|
requires: PlatformRequires {
|
|
rigids: [],
|
|
signature: |L 0-0, C 40-49| TypedIdent {
|
|
ident: |L 0-0, C 40-44| "main",
|
|
spaces_before_colon: [],
|
|
ann: |L 0-0, C 47-49| Record {
|
|
fields: [],
|
|
ext: None,
|
|
},
|
|
},
|
|
},
|
|
exposes: [],
|
|
packages: [],
|
|
imports: [],
|
|
provides: [],
|
|
effects: Effects {
|
|
spaces_before_effects_keyword: [],
|
|
spaces_after_effects_keyword: [],
|
|
spaces_after_type_name: [],
|
|
effect_shortname: "fx",
|
|
effect_type_name: "Blah",
|
|
entries: [],
|
|
},
|
|
before_header: [],
|
|
after_platform_keyword: [],
|
|
before_requires: [],
|
|
after_requires: [],
|
|
before_exposes: [],
|
|
after_exposes: [],
|
|
before_packages: [],
|
|
after_packages: [],
|
|
before_imports: [],
|
|
after_imports: [],
|
|
before_provides: [],
|
|
after_provides: [],
|
|
},
|
|
}
|