Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
based on the old PR by @dragostis: #277 Changes that were made: - debugger core context was refactored and extracted to a lib (so that it could be used in other frontends, e.g. editor plugins) - CLI was extended using rustyline helpers to provide file completions, history etc. - applied suggestions from @hansihe from the old PR (#277 (comment)): 1. added `ba` (add breakpoints at all rules) which is useful for stepping through the entire grammar, plus breakpoint deletions and loading input directly from readline; 2. added command line arguments. - changed the listener function to return a boolean, so that the debugger can signal back to a parsing thread to finish before reaching its input's EOF.
- Loading branch information
Tomas Tauber
committed
Nov 20, 2022
1 parent
7c021f3
commit be98cfc
Showing
15 changed files
with
899 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[workspace] | ||
members = [ | ||
"bootstrap", | ||
"debugger", | ||
"derive", | ||
"generator", | ||
"grammars", | ||
|
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,26 @@ | ||
[package] | ||
name = "pest_debugger" | ||
description = "pest grammar debugger" | ||
version = "2.5.0" | ||
edition = "2021" | ||
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>", "Tomas Tauber <me@tomtau.be>"] | ||
homepage = "https://pest.rs/" | ||
repository = "https://github.com/pest-parser/pest" | ||
documentation = "https://docs.rs/pest" | ||
keywords = ["pest", "grammar", "debugger"] | ||
categories = ["parsing"] | ||
license = "MIT/Apache-2.0" | ||
readme = "_README.md" | ||
rust-version = "1.56" | ||
|
||
[dependencies] | ||
pest = { path = "../pest", version = "2.5.0" } | ||
pest_meta = { path = "../meta", version = "2.5.0" } | ||
pest_vm = { path = "../vm", version = "2.5.0" } | ||
rustyline = "10" | ||
thiserror = "1" | ||
|
||
[badges] | ||
codecov = { repository = "pest-parser/pest" } | ||
maintenance = { status = "actively-developed" } | ||
github = { repository = "pest-parser/pest" } |
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 @@ | ||
../README.md |
Oops, something went wrong.