mirror of
https://gitee.com/openharmony/third_party_rust_nom
synced 2024-11-23 07:29:54 +00:00
Adapt enums
This commit is contained in:
parent
3cc68d136f
commit
297c3c8310
@ -1,5 +1,6 @@
|
||||
#![feature(macro_rules)]
|
||||
use nom::{Error, Producer, FileProducer, Mapper, Ender, Parser, print, accline, Done};
|
||||
#![feature(globs,macro_rules)]
|
||||
use nom::{Producer, FileProducer, Mapper, Ender, Parser, print, accline};
|
||||
use nom::Parser::*;
|
||||
use std::str;
|
||||
|
||||
mod nom;
|
||||
|
@ -1,3 +1,4 @@
|
||||
#![feature(globs,macro_rules)]
|
||||
#![desc = "Omnomnom incremental byte parser"]
|
||||
#![license = "MIT"]
|
||||
|
||||
@ -9,6 +10,8 @@ use std::str;
|
||||
use std::cmp::min;
|
||||
use std::io::fs::File;
|
||||
use std::io::{IoResult, IoErrorKind};
|
||||
use self::Parser::*;
|
||||
use self::ProducerState::*;
|
||||
|
||||
type Err = uint;
|
||||
type ParserClosure<'a,I,O> = |I|:'a -> Parser<I,O>;
|
||||
|
Loading…
Reference in New Issue
Block a user