Comments (5)
Hi! Thanks for your report, I'm on it
from nom.
It should work with that commit. You do not have to use call!
in map!
, flat_map!
and others like these, they use it already.
from nom.
Now map!
does not require call!
wrapper for expression. But map_opt!
and map_res!
still require it.
For example:
Ok:
named!(parse_u32<&[u8], u32>, map_res!(map_res!(digit, str::from_utf8), call!(|s: &str| s.parse::<u32>())));
Err:
named!(parse_u32<&[u8], u32>, map_res!(map_res!(digit, str::from_utf8), |s: &str| s.parse::<u32>()));
from nom.
ok, I'll fix them as well
from nom.
Hi!
I think 94fbe95 will fix it for map_opt!
and map_res!
from nom.
Related Issues (20)
- Add a fold equivalent of separated_list0/separated_list1
- Suggestion: fallible allocation HOT 2
- `take_while_m_n` is invalid for multi-byte UTF-8 characters
- Why does map_res closure not simply return Option HOT 3
- Allow `verify` to take verification function `FnMut`?
- Generate syntax highlighting files
- take_while_m_n splits at wrong index HOT 1
- Make traits public HOT 1
- delimited sample compile error HOT 1
- Help Wanted: how to consume until whichever comes first [tag1 | tag2]? HOT 1
- [Question] program nom for both run and compile time parsing? HOT 1
- Add `is_bin_digit` method HOT 1
- Suggestion: A character parser which eats any whitespace before and after a given parser
- fold parsers still require cloning HOT 1
- warning: rejected by a future version of Rust HOT 3
- Document that `InputTake::take_split` (`Input::take_split` on master) requires returning the `before` and `after` slices in opposite positions
- Ease integration of custom error
- "Choosing a combinator" guide is missing some combinators
- Help needed with writing ambiguous parser
- nom 5->nom 7, opt parser lifetime problem HOT 1
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 nom.