bout halfway complete with parserlang, also added userdata to parser
This commit is contained in:
parent
7cfea02681
commit
16821e8411
6 changed files with 190 additions and 44 deletions
|
|
@ -29,7 +29,7 @@ extern "C" {
|
|||
/*
|
||||
* @brief
|
||||
*/
|
||||
typedef uint32_t (* ARC_ParserLang_GetConstId)(ARC_String *constant);
|
||||
typedef uint32_t (* ARC_ParserLang_GetIdFn)(ARC_String *constant);
|
||||
|
||||
/*
|
||||
* @brief creates a parser for the Parser Lang
|
||||
|
|
@ -39,7 +39,7 @@ typedef uint32_t (* ARC_ParserLang_GetConstId)(ARC_String *constant);
|
|||
*
|
||||
* @param[out] parser the parser to create
|
||||
*/
|
||||
void ARC_Parser_CreateAsParserLang(ARC_Parser **parser);
|
||||
void ARC_Parser_CreateAsParserLang(ARC_Parser **parser, ARC_ParserLang_GetIdFn getIdFn);
|
||||
|
||||
#define ARC_PARSERLANG_TOKEN_NULL 0
|
||||
#define ARC_PARSERLANG_TOKEN_NUMBER 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue