Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
D7050E
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mark Hakansson
D7050E
Commits
da7abc7c
Commit
da7abc7c
authored
5 years ago
by
Per
Browse files
Options
Downloads
Patches
Plain Diff
more examples (polish)
parent
e5134f40
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/main_span_expr.rs
+1
-2
1 addition, 2 deletions
examples/main_span_expr.rs
with
1 addition
and
2 deletions
examples/main_span_expr.rs
+
1
−
2
View file @
da7abc7c
...
@@ -93,7 +93,6 @@ fn main() {
...
@@ -93,7 +93,6 @@ fn main() {
println!
(
"pretty e {}"
,
dump_expr
(
&
(
s
,
e
)));
println!
(
"pretty e {}"
,
dump_expr
(
&
(
s
,
e
)));
}
}
//
// In this example, we have a `parse_expr_ms` is the "top" level parser.
// In this example, we have a `parse_expr_ms` is the "top" level parser.
// It consumes white spaces, allowing the location information to reflect the exact
// It consumes white spaces, allowing the location information to reflect the exact
// positions in the input file.
// positions in the input file.
...
@@ -101,4 +100,4 @@ fn main() {
...
@@ -101,4 +100,4 @@ fn main() {
// The dump_expr will create a pretty printing of the expression with spans for
// The dump_expr will create a pretty printing of the expression with spans for
// each terminal. This will be useful for later for precise type error reporting.
// each terminal. This will be useful for later for precise type error reporting.
//
//
// The ex
r
tra field is not used, it can be used for metadata, such as filename.
// The extra field is not used, it can be used for metadata, such as filename.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment