User Guide
json.cpp File Reference
#include <catch2/catch_test_macros.hpp>
#include "ast/program.hpp"
#include "parser/nmodl_driver.hpp"
#include "visitors/json_visitor.hpp"
#include "visitors/visitor_utils.hpp"
#include <nlohmann/json.hpp>

Go to the source code of this file.

Typedefs

using json = nlohmann::json
 

Functions

std::string run_json_visitor (const std::string &text, bool compact=false)
 
 TEST_CASE ("Convert NMODL to AST to JSON form using JSONVisitor", "[visitor][json]")
 

Typedef Documentation

◆ json

using json = nlohmann::json

Definition at line 17 of file json.cpp.

Function Documentation

◆ run_json_visitor()

std::string run_json_visitor ( const std::string &  text,
bool  compact = false 
)

Definition at line 28 of file json.cpp.

◆ TEST_CASE()

TEST_CASE ( "Convert NMODL to AST to JSON form using JSONVisitor"  ,
""  [visitor][json] 
)

Definition at line 35 of file json.cpp.