mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +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.
10 lines
201 B
Text
10 lines
201 B
Text
platform "examples/hello-world"
|
|
requires {} { main : Str }
|
|
exposes []
|
|
packages {}
|
|
imports []
|
|
provides [ mainForHost ]
|
|
effects fx.Effect {}
|
|
|
|
mainForHost : Str
|
|
mainForHost = main
|