Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lang::SharedParserData Struct Reference

#include <lexer.h>

Collaboration diagram for lang::SharedParserData:

Public Member Functions

 SharedParserData ()
 
bool isNumber (const std::string &str, size_t start, size_t *len)
 
bool match (const std::string &str, size_t pos, int *kind, size_t *start, size_t *len)
 
bool isUnary (int kind, int *prec)
 
bool isBinary (int kind, int *prec)
 
bool isRightAssociative (int kind)
 
bool isScalarType (int kind)
 

Private Member Functions

bool validIdent (size_t i, char n)
 

Private Attributes

TokenTrieRef head
 
std::unordered_map< int, int > unary_prec
 
std::unordered_map< int, int > binary_prec
 

Constructor & Destructor Documentation

lang::SharedParserData::SharedParserData ( )
inline

Member Function Documentation

bool lang::SharedParserData::isBinary ( int  kind,
int *  prec 
)
inline
bool lang::SharedParserData::isNumber ( const std::string &  str,
size_t  start,
size_t *  len 
)
inline
bool lang::SharedParserData::isRightAssociative ( int  kind)
inline
bool lang::SharedParserData::isScalarType ( int  kind)
inline
bool lang::SharedParserData::isUnary ( int  kind,
int *  prec 
)
inline
bool lang::SharedParserData::match ( const std::string &  str,
size_t  pos,
int *  kind,
size_t *  start,
size_t *  len 
)
inline
bool lang::SharedParserData::validIdent ( size_t  i,
char  n 
)
inlineprivate

Member Data Documentation

std::unordered_map<int, int> lang::SharedParserData::binary_prec
private
TokenTrieRef lang::SharedParserData::head
private
std::unordered_map<int, int> lang::SharedParserData::unary_prec
private

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