-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Created `string_path` function to show a readable path to a control_idx. - Created `path_idx` function to transverse from a root to a control_idx given a ParsePath. - Minor edits to existing structures like ParsePath and the parser.
- Loading branch information
1 parent
67b6e89
commit f0cf957
Showing
7 changed files
with
246 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
root = { "." } | ||
|
||
root = { "." } | ||
separator = { "-" } | ||
|
||
body = { "b" } | ||
|
||
num = { ASCII_DIGIT+ } | ||
|
||
branch = {"t" | "f"} | ||
branch = { "t" | "f" } | ||
|
||
clause = { separator ~ (body | num | branch) } | ||
|
||
path = { SOI ~ root ~ clause* ~ EOI } | ||
name = { (ASCII_ALPHA | ASCII_DIGIT | "_")* } | ||
|
||
path = { SOI ~ name ~ root ~ clause* ~ EOI } |
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
Oops, something went wrong.