Adapt enums

This commit is contained in:
Geoffroy Couprie 2014-11-21 16:26:36 +01:00
parent 3cc68d136f
commit 297c3c8310
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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>;