Struct combine_language::LanguageEnv[][src]

pub struct LanguageEnv<'a, I> { /* fields omitted */ }

A type containing parsers for a specific language. For some parsers there are two version where the parser which ends with a _ is a variant which does not skip whitespace and comments after parsing the token itself.

Methods

impl<'a, I> LanguageEnv<'a, I> where
    I: Stream<Item = char>,
    I::Error: ParseError<I::Item, I::Range, I::Position>, 
[src]

Constructs a new parser from a language defintion

Creates a lexing parser from p

Skips spaces and comments

Parses a symbol, lexing the stream if it is successful

Parses an identifier, failing if it parses something that is a reserved identifier

Parses an identifier, failing if it parses something that is a reserved identifier

Parses the reserved identifier name

Parses an operator, failing if it parses something that is a reserved operator

Parses an identifier, failing if it parses something that is a reserved identifier

Parses the reserved operator name

Parses a character literal taking escape sequences into account

Parses a string literal taking character escapes into account

Parses p inside angle brackets < p >

Parses p inside braces { p }

Parses p inside brackets [ p ]

Parses p inside parentheses ( p )

Parses an integer

Parses a floating point number

Auto Trait Implementations

impl<'a, I> !Send for LanguageEnv<'a, I>

impl<'a, I> !Sync for LanguageEnv<'a, I>