roc/compiler/parse/tests/snapshots/pass/empty_platform_header.header.result-ast
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

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: [],
},
}