-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #521 from nevalang/nodes_comments_fix
fix(parser): add support for comments inside components
- Loading branch information
Showing
8 changed files
with
830 additions
and
563 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// top-level comment 1 | ||
component Main(start) (stop) { | ||
// comment inside component 1 | ||
nodes { | ||
// comment inside nodes 1 | ||
Printer<any> | ||
// comment inside nodes 2 | ||
} | ||
// comment inside component 2 | ||
net { | ||
// comment inside network 1 | ||
:start -> printer:data | ||
// comment inside network 2 | ||
printer:sig -> :stop | ||
// comment inside network | ||
} | ||
// comment inside component 3 | ||
} | ||
// top-level comment 2 |
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 @@ | ||
neva: 0.10.0 |
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
Large diffs are not rendered by default.
Oops, something went wrong.
1,339 changes: 781 additions & 558 deletions
1,339
internal/compiler/parser/generated/neva_parser.go
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package pkg | ||
|
||
// Version is the current version of the language and stdlib | ||
var Version = "0.10.5" //nolint:gochecknoglobals | ||
var Version = "0.11.1" //nolint:gochecknoglobals |