KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sexpr_parse.cpp File Reference

Utility tool for parsing S-Expression data with the SEXPR class for benchmarking, testing, etc. More...

#include <sexpr/sexpr_parser.h>
#include <qa_utils/utility_registry.h>
#include <common.h>
#include <core/profile.h>
#include <wx/cmdline.h>
#include <fstream>
#include <iostream>

Go to the source code of this file.

Classes

class  QA_SEXPR_PARSER
 

Enumerations

enum  PARSER_RET_CODES { PARSE_FAILED = KI_TEST::RET_CODES::TOOL_SPECIFIC , PARSE_FAILED = KI_TEST::RET_CODES::TOOL_SPECIFIC }
 

Functions

int sexpr_parser_func (int argc, char *argv[])
 

Variables

static const wxCmdLineEntryDesc g_cmdLineDesc []
 
static bool registered
 

Detailed Description

Utility tool for parsing S-Expression data with the SEXPR class for benchmarking, testing, etc.

Definition in file sexpr_parse.cpp.

Enumeration Type Documentation

◆ PARSER_RET_CODES

Enumerator
PARSE_FAILED 
PARSE_FAILED 

Definition at line 99 of file sexpr_parse.cpp.

Function Documentation

◆ sexpr_parser_func()

int sexpr_parser_func ( int  argc,
char *  argv[] 
)

Variable Documentation

◆ g_cmdLineDesc

const wxCmdLineEntryDesc g_cmdLineDesc[]
static
Initial value:
= {
{
wxCMD_LINE_SWITCH,
"h",
"help",
_( "displays help on the command line parameters" ).mb_str(),
wxCMD_LINE_VAL_NONE,
wxCMD_LINE_OPTION_HELP,
},
{
wxCMD_LINE_SWITCH,
"v",
"verbose",
_( "print parsing information" ).mb_str(),
},
{
wxCMD_LINE_PARAM,
nullptr,
nullptr,
_( "input file" ).mb_str(),
wxCMD_LINE_VAL_STRING,
wxCMD_LINE_PARAM_OPTIONAL | wxCMD_LINE_PARAM_MULTIPLE,
},
{ wxCMD_LINE_NONE }
}
#define _(s)

Definition at line 72 of file sexpr_parse.cpp.

Referenced by sexpr_parser_func().

◆ registered

bool registered
static
Initial value:
"sexpr_parser",
"Benchmark s-expression parsing",
} )
static bool Register(const KI_TEST::UTILITY_PROGRAM &aProgInfo)
Register a utility program factory function against an ID string.
int sexpr_parser_func(int argc, char *argv[])

Definition at line 157 of file sexpr_parse.cpp.