roc/compiler/parse/tests/snapshots/pass/minimal_app_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

25 lines
570 B
Text

App {
header: AppHeader {
name: |L 0-0, C 4-14| PlainLine(
"test-app",
),
packages: [],
imports: [],
provides: [],
to: |L 0-0, C 30-38| NewPackage(
PackageName(
"./blah",
),
),
before_header: [],
after_app_keyword: [],
before_packages: [],
after_packages: [],
before_imports: [],
after_imports: [],
before_provides: [],
after_provides: [],
before_to: [],
after_to: [],
},
}