Struct combine_language::LanguageDef [] [src]

pub struct LanguageDef<IS, I, OS, O, CL, CS, CE> where I: Parser<Output=char>, IS: Parser<Input=I::Input, Output=char>, O: Parser<Input=I::Input, Output=char>, OS: Parser<Input=I::Input, Output=char>, CL: Parser<Input=I::Input, Output=()>, CS: Parser<Input=I::Input, Output=()>, CE: Parser<Input=I::Input, Output=()> {
    pub ident: Identifier<IS, I>,
    pub op: Identifier<OS, O>,
    pub comment_line: CL,
    pub comment_start: CS,
    pub comment_end: CE,
}

A struct type which contains the necessary definitions to construct a language parser

Fields

ident: Identifier<IS, I>

How to parse an identifier

op: Identifier<OS, O>

How to parse an operator

comment_line: CL

Describes the start of a line comment

comment_start: CS

Describes the start of a block comment

comment_end: CE

Describes the end of a block comment