Comments (1)
pegvm has a set of parameters that represent exactly their state.
What do you think of refactory the changes on this parameters, centralized in one function(or macro)
This macro can then, test if pegvm-verbose is #t(and so, pegvm-verbose don't represent number of spaces anymore, just if there's debug or not)
If is so, this macro call a function that receive 2 hash : the hash of actual parameters and the hash of new paramters. In both cases, the execition continues normally.
With this, we can implement some very simple pure debug, as a function that just display her arguments in some pretty-priny way(as showing the states changing)
In more advanced debug functions, can use the state transition to know how much spaces to show or another problem.
In this way, we put out of racket-peg think about debug alone. The user can provide a function to do the debug in the way (s)he likes
I will try to implement this if you like, but only do a pull request when will complete
from racket-peg.
Related Issues (20)
- We can't use #f as a semantic value HOT 1
- unicode safe HOT 5
- support to "..." HOT 3
- add quantifier repetition HOT 18
- Next milestone and Relase HOT 2
- Implement a extension of PEG HOT 2
- Can PEG results objects become more predictable?
- Parse Failure HOT 1
- difficult to parse a basic language HOT 7
- document pegvm semantics HOT 7
- change (? e) to (or e (epsilon)) HOT 1
- No way to use bake from PEG language. HOT 1
- implement memorization of results HOT 1
- benchmark this
- Overriding/adding alternatives to rules from imported modules HOT 2
- 'capture' should be 'name' in reference HOT 1
- Release under LGPLv3+
- Bug with context-sensitive grammar HOT 1
- Precise defitition of the peg syntax? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from racket-peg.