LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
loos::ParserDriver Struct Reference

#include <ParserDriver.hpp>

Collaboration diagram for loos::ParserDriver:
Collaboration graph
[legend]

Public Member Functions

 ParserDriver (Kernel &k)
 For future parsing...
 
 ParserDriver (const std::string s, Kernel &k)
 For parsing a string...
 
void parse (const std::string &s)
 Parse the passed string...
 
void parse (void)
 Calls the Bison parser.
 

Public Attributes

parser * pparser
 
LoosLexer * lexer
 
Kernelkern
 
std::istringstream * isp
 

Detailed Description

Driver for the Bison parser (to encapsulate data) Can parse from either stdin or a string. Requires a Kernel for storing the compiled Actions

Member Function Documentation

◆ parse()

void loos::ParserDriver::parse ( const std::string & s)
inline

Parse the passed string...

Note that it is up to the caller to reset the kernel if you don't want to concatenate the commands...


The documentation for this struct was generated from the following file: