mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 10:02:38 +03:00
rename main file and executable in CSV example
This commit is contained in:
parent
a3c1325edf
commit
2341c01ab3
3
examples/parser/.gitignore
vendored
3
examples/parser/.gitignore
vendored
@ -1,2 +1 @@
|
||||
main
|
||||
countdown
|
||||
parse-movies-csv
|
||||
|
@ -1,9 +1,12 @@
|
||||
app "main"
|
||||
app "parse-movies-csv"
|
||||
packages { pf: "platform/main.roc" }
|
||||
imports [Parser.Core.{Parser, map, apply}, Parser.Str.{RawStr}, Parser.CSV.{CSV, record, field, string, nat}]
|
||||
provides [main] to pf
|
||||
|
||||
input : Str
|
||||
input = "Airplane!,1980,\"Robert Hays,Julie Hagerty\"\r\nCaddyshack,1980,\"Chevy Chase,Rodney Dangerfield,Ted Knight,Michael O'Keefe,Bill Murray\""
|
||||
|
||||
main : Str
|
||||
main =
|
||||
when Parser.CSV.parseStr movieInfoParser input is
|
||||
Ok movies ->
|
Loading…
Reference in New Issue
Block a user