Comments (3)
👍
I can confirm it allows me to factor the conversion to Rgb
back up :-)
from mecha.
I worked around it by un-factoring convert
from rgb
down to rgbBytes
and rgbNibbles
, so those become Parser(Rgb)
and the unique tuple types are immediately consumed.
I'm still wondering if there isn't a better way, but feel free to close.
from mecha.
Good catch. I've pushed a fix that should force the compiler to cache the result of Tuple
. I'll have to revisit this once 0.7.0
hits.
from mecha.
Related Issues (20)
- Delimiter seperated value parser
- Have an alternative to mecha.convert for when the convertion cannot fail HOT 1
- Allow mecha to allocate memory HOT 3
- Example Rgb parser is incorrect
- Documentation HOT 1
- How to parse bareword literal? HOT 2
- Build documentation from doc comments HOT 1
- How to parse indents? HOT 4
- How to parse string literals? HOT 2
- Returning progress when parsing fails HOT 8
- most mecha.ascii.* parsers are Parser(u8), but mecha.ascii.char is Parser(void) HOT 1
- Infinite recursion - i.e. how to use ref()? HOT 2
- Document what `map` passes to functions with various parsers (`combine`, `oneOf`, ...) HOT 2
- Line/column number tracking and custom errors HOT 1
- Support the new zig package manager HOT 2
- Build including mecha fails with no field named 'root_source_file' in struct 'Build.CreateModuleOptions' HOT 2
- tag 0.11.0 HOT 1
- Release for zig 0.13 HOT 2
- Update to the latest Zig HOT 3
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 mecha.