TECA
The Toolkit for Extreme Climate Analysis
teca_parser::tokenizer Class Reference

#include <teca_parser.h>

Static Public Member Functions

static unsigned int get_open_group (const char *s, char *g)
 
static unsigned int get_close_group (const char *s, char *g)
 
static unsigned int get_constant_name (const char *s, char *c)
 
static unsigned int get_variable_name (const char *s, char *v)
 
static unsigned int get_unary_operator_name (const char *expr, char *op_name)
 
static unsigned int get_binary_operator_name (const char *expr, char *op_name)
 
static unsigned int get_ternary_operator_name (const char *expr, char *op_name)
 
static unsigned int get_operator_precedence (char *op)
 

Detailed Description

Recognizes and extracts tokens during parsing. given a pointer (first argument) the methods return the number of chars in the token, or 0 when the pointer doesn't point to a valid token, and copies the token into the buffer (second argument).


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