![]() |
User Guide
|
Example of standalone lexer program for NMODL. More...
Example of standalone lexer program for NMODL.
This example demonstrate basic usage of scanner and driver classes. We parse user provided nmodl file and print individual token with it's value and location.
Definition in file main_nmodl.cpp.
#include <fstream>
#include <streambuf>
#include <CLI/CLI.hpp>
#include "ast/ast.hpp"
#include "config/config.h"
#include "lexer/nmodl_lexer.hpp"
#include "parser/nmodl_driver.hpp"
#include "utils/logger.hpp"
Go to the source code of this file.
Namespaces | |
nmodl | |
encapsulates code generation backend implementations | |
Typedefs | |
using | nmodl::SymbolType = parser::NmodlParser::symbol_type |
using | nmodl::Token = parser::NmodlParser::token |
using | nmodl::TokenType = parser::NmodlParser::token_type |
Functions | |
void | nmodl::tokenize (const std::string &mod_text) |
int | main (int argc, const char *argv[]) |
int main | ( | int | argc, |
const char * | argv[] | ||
) |
Definition at line 112 of file main_nmodl.cpp.