Comments (5)
I think there might be an easier way do this. We have a TokenStream struct which is responsible for returning tokens parsed from a given source. I'm thinking if we encounter a #
token, we can just skip to the next toke #
and that should be equivalent to stripping out comments.
from miden-vm.
Is doing one pass just to remove the comments an acceptable way of implementing this?
from miden-vm.
Just to clarify - comments be anywhere, right? Including within procedures, and outside of both procedures and scripts?
from miden-vm.
Just to clarify - comments be anywhere, right? Including within procedures, and outside of both procedures and scripts?
Yes - this is correct. But the nice thing of handling at the TokenStream
level is that tokens are iterated over before we need to worry about procedures, scripts etc.
from miden-vm.
Closed by #20
from miden-vm.
Related Issues (20)
- Miden VM Tracing HOT 3
- exec parser should validate procedure name length HOT 12
- support `exec` with multiple modules on the procedures name HOT 2
- Document `adv.keyval` instruction
- Document `adv.mem` instruction
- Dependency Management Pattern HOT 3
- `caller` opcode should error if used outside of the kernel context HOT 2
- How to use verifier crate? HOT 4
- Testing non-exported procedures HOT 3
- File extensions for library files HOT 2
- Refactor Miden Debugger Docs + Logic
- CI ignores examples tests HOT 1
- Add hash variant to `ProofObject` HOT 1
- Evaluate reducing procedure id len to `20`
- Tracking issue: STARK verifier added to the standard library
- Remove dependency of `miden` repl on `internals` feature
- Move `stdlib` into a separate repo
- Improve debug subcommand interface HOT 3
- Blinded CALL targerts HOT 6
- Refactor serialization of Miden assembly
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 miden-vm.