Struct parser_c::parser::parser::Parser
[−]
pub struct Parser { pub user: PState, // some fields omitted }
Fields
user: PState
Methods
impl Parser
[src]
fn exec<F, T>(
initial_state: PState,
do_parse: F
) -> Result<(PState, T), ParseError> where
F: FnOnce(&mut Parser) -> Result<T, ParseError>,
initial_state: PState,
do_parse: F
) -> Result<(PState, T), ParseError> where
F: FnOnce(&mut Parser) -> Result<T, ParseError>,
impl Parser
[src]
fn getNewName(&mut self) -> Name
fn setPos(&mut self, pos: Position)
fn getPos(&self) -> Position
fn addTypedef(&mut self, ident: Ident)
fn shadowTypedef(&mut self, ident: &Ident)
fn isTypeIdent(&self, ident: &Ident) -> bool
fn enterScope(&mut self)
fn leaveScope(&mut self)
fn getInput(&self) -> InputStream
fn setInput(&mut self, i: InputStream)
fn getLastToken(&self) -> CToken
fn getSavedToken(&self) -> CToken
fn setLastToken(&mut self, tk: CToken)
fn handleEofToken(&mut self)
fn doDeclIdent(&mut self, declspecs: &[CDeclSpec], declr: CDeclrR)
fn doFuncParamDeclIdent(&mut self, decl: &CDeclr)
fn withNodeInfo<T: 'static, N: Pos>(
&mut self,
node: N,
mkAttrNode: Box<FnBox(NodeInfo) -> T>
) -> Result<T, ParseError>
&mut self,
node: N,
mkAttrNode: Box<FnBox(NodeInfo) -> T>
) -> Result<T, ParseError>
fn withLength<T: Clone + 'static>(
&mut self,
nodeinfo: NodeInfo,
mkAttrNode: Box<FnBox(NodeInfo) -> T>
) -> Result<T, ParseError>
&mut self,
nodeinfo: NodeInfo,
mkAttrNode: Box<FnBox(NodeInfo) -> T>
) -> Result<T, ParseError>
fn withAttribute<N: Pos>(
&mut self,
node: N,
cattrs: Vec<CAttribute<NodeInfo>>,
mkDeclrNode: Box<FnBox(NodeInfo) -> CDeclrR>
) -> Result<CDeclrR, ParseError>
&mut self,
node: N,
cattrs: Vec<CAttribute<NodeInfo>>,
mkDeclrNode: Box<FnBox(NodeInfo) -> CDeclrR>
) -> Result<CDeclrR, ParseError>
fn withAttributePF<N: Pos + 'static>(
&mut self,
node: N,
cattrs: Vec<CAttribute<NodeInfo>>,
mkDeclrCtor: Box<Fn(NodeInfo, CDeclrR) -> CDeclrR>
) -> Result<Rc<Box<Fn(CDeclrR) -> CDeclrR>>, ParseError>
&mut self,
node: N,
cattrs: Vec<CAttribute<NodeInfo>>,
mkDeclrCtor: Box<Fn(NodeInfo, CDeclrR) -> CDeclrR>
) -> Result<Rc<Box<Fn(CDeclrR) -> CDeclrR>>, ParseError>