hipddf.parser

Undocumented in source.

Members

Aliases

ForeachValueExec
alias ForeachValueExec = void delegate(string)
Undocumented in source.
HipDDFBuiltinTypeCheck
alias HipDDFBuiltinTypeCheck = bool function(string type, HipDDFToken tk)
Undocumented in source.
HipDDFKeywordParse
alias HipDDFKeywordParse = HipDDFToken function(HipDDFTokenizer* tokenizer)
Undocumented in source.

Enums

HipDDFTokenType
enum HipDDFTokenType
Undocumented in source.

Functions

checkTypeMatch
bool checkTypeMatch(string type, string str)

Checks if the type passed matches the string containing the value

checkTypeMatch
bool checkTypeMatch(HipDDFVarInternal variable, HipDDFToken tk)
Undocumented in source. Be warned that the author may not have intended to support it.
findMatchingCharacter
int findMatchingCharacter(string str, char open, char close, int start)

Given an array like [[5, 2, 3], [1, 2, 3]] It will find the matching close character

foreachValueOnArrayStringified
bool foreachValueOnArrayStringified(string arrayString, char open, char close, ForeachValueExec execute)

Returns if the foreach executed successful

getToken
HipDDFToken getToken(HipDDFTokenizer* tokenizer)
Undocumented in source. Be warned that the author may not have intended to support it.
getValueFromString
string getValueFromString(string aa, int start, int next)

This function may return a struct in the format Vector2(0,0) A string literal "hello world" Or a number 123456

isAlpha
bool isAlpha(char c)
Undocumented in source. Be warned that the author may not have intended to support it.
isArraySyntax
bool isArraySyntax(HipDDFTokenType type)
Undocumented in source. Be warned that the author may not have intended to support it.
isAssociativeArraySyntax
bool isAssociativeArraySyntax(HipDDFTokenType type)
Undocumented in source. Be warned that the author may not have intended to support it.
isEndOfLine
bool isEndOfLine(char c)
Undocumented in source. Be warned that the author may not have intended to support it.
isLiteral
bool isLiteral(HipDDFTokenType type)
Undocumented in source. Be warned that the author may not have intended to support it.
isNumeric
bool isNumeric(char c)
Undocumented in source. Be warned that the author may not have intended to support it.
isStructLiteral
bool isStructLiteral(HipDDFToken tk, HipDDFTokenizer* tokenizer)

In this step, the token is already checked if it was a symbol

isValueSyntax
bool isValueSyntax(HipDDFTokenType type)
Undocumented in source. Be warned that the author may not have intended to support it.
isWhitespace
bool isWhitespace(char c)
Undocumented in source. Be warned that the author may not have intended to support it.
parseAssignment
HipDDFToken parseAssignment(HipDDFVarInternal variable, HipDDFToken token, HipDDFTokenizer* tokenizer)
Undocumented in source. Be warned that the author may not have intended to support it.
parseHipDDF
HipDDFObject parseHipDDF(string hdf, string filename)

It must always find in the following order: 1: Type 2: Symbol 3: Assignment 4: Data By following this order, the data format will be really simple to follow.

parseStruct
HipDDFToken parseStruct(HipDDFVarInternal variable, HipDDFToken token, HipDDFTokenizer* tokenizer)
Undocumented in source. Be warned that the author may not have intended to support it.
parseType
HipDDFToken parseType(HipDDFVarInternal variable, HipDDFToken token, HipDDFTokenizer* tokenizer)

The token passed is assumed to contain the initial type symbol. It will finish parsing by checking if it is an array, and (futurely) an associative array

parseValue
HipDDFToken parseValue(HipDDFVarInternal variable, HipDDFToken token, HipDDFTokenizer* tokenizer)
Undocumented in source. Be warned that the author may not have intended to support it.
parserIsVarArray
bool parserIsVarArray(const(void*) hddfvar)
Undocumented in source. Be warned that the author may not have intended to support it.
parserObjGet
T parserObjGet(const(void*) hddfobj, string name)
Undocumented in source. Be warned that the author may not have intended to support it.
parserObjHasVar
bool parserObjHasVar(const(void*) hddfobj, string name)
Undocumented in source. Be warned that the author may not have intended to support it.
parserObjSymbol
string parserObjSymbol(const(void*) hddfobj)
Undocumented in source. Be warned that the author may not have intended to support it.
parserVarLength
uint parserVarLength(const(void*) hddfvar)
Undocumented in source. Be warned that the author may not have intended to support it.
parserVarSymbol
string parserVarSymbol(const(void*) hddfvar)
Undocumented in source. Be warned that the author may not have intended to support it.
parserVarType
string parserVarType(const(void*) hddfvar)
Undocumented in source. Be warned that the author may not have intended to support it.
parserVarValue
string parserVarValue(const(void*) hddfvar)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

HipDDFObjectInternal
struct HipDDFObjectInternal
Undocumented in source.
HipDDFStruct
struct HipDDFStruct
Undocumented in source.
HipDDFToken
struct HipDDFToken
Undocumented in source.
HipDDFTokenizer
struct HipDDFTokenizer
Undocumented in source.
HipDDFVarInternal
struct HipDDFVarInternal
Undocumented in source.

Variables

builtinTypes
immutable(HipDDFBuiltinTypeCheck[string]) builtinTypes;
Undocumented in source.
keywords
immutable(HipDDFKeywordParse[string]) keywords;
Undocumented in source.

Meta