teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Classes | Typedefs | Functions
teditor::parser Namespace Reference

Classes

class  BufferScanner
 
struct  Lexer
 
struct  NFA
 Ken-Thompson NFA as described here: https://swtch.com/~rsc/regexp/regexp1.html but adjusted to work with teditor environment. More...
 
struct  Node
 
struct  Regexs
 A collection of commonly used Regular expressions. More...
 
class  Scanner
 
class  StringScanner
 
struct  Token
 
struct  TokenDef
 

Typedefs

typedef std::vector< TokenDefTokenDefs
 

Functions

std::ostream & operator<< (std::ostream &os, const Token &tok)
 
std::ostream & operator<< (std::ostream &os, const Node &n)
 
Nodeexpression (Token &token, Lexer &lex, int rbp)
 

Typedef Documentation

◆ TokenDefs

typedef std::vector<TokenDef> teditor::parser::TokenDefs

Function Documentation

◆ expression()

Node * teditor::parser::expression ( Token token,
Lexer lex,
int  rbp 
)

◆ operator<<() [1/2]

std::ostream& teditor::parser::operator<< ( std::ostream &  os,
const Node n 
)

◆ operator<<() [2/2]

std::ostream& teditor::parser::operator<< ( std::ostream &  os,
const Token tok 
)