28 stream << std::setw(15) << mt.
name <<
" at [" << mt.
position() <<
"]";
29 return stream <<
" type " << mt.
token;
Represent token returned by scanner.
int token
token value returned by lexer
std::string position() const
Return position of the token as string.
bool external
true if token is externally defined variable (e.g. t, dt in NEURON)
nmodl::parser::location LocationType
int start_line() const
Return line number where token started in the mod file.
std::string name
name of the token
LocationType pos
position of token in the mod file
static double location(void *v)
encapsulates code generation backend implementations
nmodl::parser::location LocationType
std::ostream & operator<<(std::ostream &stream, const ModToken &mt)
ModToken operator+(ModToken const &adder1, ModToken const &adder2)