User Guide
token_mapping.hpp File Reference

Map different tokens from lexer to token types. More...

Detailed Description

Map different tokens from lexer to token types.

Definition in file token_mapping.hpp.

#include <string>
#include "parser/nmodl/nmodl_parser.hpp"

Go to the source code of this file.

Namespaces

 nmodl
 encapsulates code generation backend implementations
 
 nmodl::details
 details of lexer tokens
 

Functions

bool nmodl::is_keyword (const std::string &name)
 Check if given name is a keyword in NMODL. More...
 
bool nmodl::is_method (const std::string &name)
 Check if given name is an integration method in NMODL. More...
 
TokenType nmodl::token_type (const std::string &name)
 Return token type for given token name. More...
 
std::vector< std::string > nmodl::get_external_variables ()
 Return variables declared in NEURON that are available to NMODL. More...
 
std::vector< std::string > nmodl::get_external_functions ()
 Return functions that can be used in the NMODL. More...
 
bool nmodl::details::needs_neuron_thread_first_arg (const std::string &token)
 Checks if token is one of the functions coming from NEURON/CoreNEURON and needs passing NrnThread* as first argument (typical name of variable nt) More...