-
-
Notifications
You must be signed in to change notification settings - Fork 801
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change parsing rules for echo in pipelines
- Loading branch information
1 parent
b6549d6
commit d380a57
Showing
7 changed files
with
106 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...rse/snapshots/gleam_core__parse__tests__echo_cannot_have_an_expression_in_a_pipeline.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
source: compiler-core/src/parse/tests.rs | ||
expression: "[] |> echo fun |> wibble" | ||
--- | ||
[ | ||
Expression( | ||
PipeLine { | ||
expressions: [ | ||
List { | ||
location: SrcSpan { | ||
start: 0, | ||
end: 2, | ||
}, | ||
elements: [], | ||
tail: None, | ||
}, | ||
Echo { | ||
location: SrcSpan { | ||
start: 6, | ||
end: 10, | ||
}, | ||
expression: None, | ||
}, | ||
], | ||
}, | ||
), | ||
Expression( | ||
PipeLine { | ||
expressions: [ | ||
Var { | ||
location: SrcSpan { | ||
start: 11, | ||
end: 14, | ||
}, | ||
name: "fun", | ||
}, | ||
Var { | ||
location: SrcSpan { | ||
start: 18, | ||
end: 24, | ||
}, | ||
name: "wibble", | ||
}, | ||
], | ||
}, | ||
), | ||
] |
Oops, something went wrong.