mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +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.
25 lines
570 B
Text
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: [],
|
|
},
|
|
}
|