int DataLexInput(char *buf, int max)
Fill the lexer's buffer from the stream being parsed.
int yyleng
Length of yytext.
bool DataParseNode()
Parse one token into the current array.
BinStream & DataReadFilenames(BinStream &bs, std::vector< const char * > &filenames)
Read the script names a compiled script begins with into the shared string table.
DataArray * DataParseArray()
Parse nodes up to the end of the current array into a new array.
DataArray * DataReadEmbeddedFile(int delimiterLength)
Parse the script yytext refers to, relative to the directory of the script being parsed.
int yylex()
Read the next token of the script being parsed.
int gDataLine
Line of the script being parsed, counted by the lexer from one.
void DataMakeCompiledPath(char *out, const char *file, bool compiled)
Make the path a script is read from: the source itself, or dir/gen/base.ext.bin when reading compiled...
char * yytext
Text of the token yylex() returned last.
@ kDataTokenArrayClose
Definition DataFile.h:16
@ kDataTokenMacroOpen
Definition DataFile.h:17
@ kDataTokenMacroClose
Definition DataFile.h:18
@ kDataTokenArrayOpen
Definition DataFile.h:15
@ kDataTokenMergeInclude
Definition DataFile.h:20
DataArray * DataReadFile(const char *file, BinStream *stream)
Read a script, as text from the host or compiled from the disc or when DataSetUseCompiled() was calle...
void DataSetUseCompiled()
Read every script compiled, even from the host.
DataArray * DataReadTxtFile(const char *file, BinStream *stream)
Parse a script source.
Stream of raw bytes, the base of the memory, file, and network streams.
Definition binstream.h:22
Reference-counted array of script data nodes.
Definition dataarray.h:20
DataToken
Tokens DataLex() reports.
Definition datalex.h:6
@ kDataTokenInclude
Definition datalex.h:16
@ kDataTokenString
Definition datalex.h:10
@ kDataTokenFloat
Definition datalex.h:8
@ kDataTokenSymbol
Definition datalex.h:11
@ kDataTokenEnd
Definition datalex.h:7
@ kDataTokenInt
Definition datalex.h:9