engine/source/scriptlib/Interpreter.c
/******************************************************************************
*  ParseText -- This method parses the text in scriptText into a string of
*               byte-codes for the interpreter to execute.
*  Parameters: scriptText -- an LPCSTR containing the script to be parsed.
*              startingLineNumber -- The line number the script starts on
*                                    (For use in HTML-based scripts)
*              dwSourceContext -- DWORD which contains a host provided context
*                                 for the script being parsed.
*  Returns: E_FAIL if parser errors found else S_OK
******************************************************************************/
- This method parses the text in scriptText into a string of
byte-codes for the interpreter to execute.
Parameters: scriptText -- an LPCSTR containing the script to be parsed.
- This method parses the text in scriptText into a string of byte - codes for the interpreter to execute . Parameters : scriptText -- an LPCSTR containing the script to be parsed .
HRESULT Interpreter_ParseText(Interpreter *pinterpreter, LPSTR scriptText,
                              ULONG startingLineNumber, LPCSTR path)
{
    Parser_ParseText(&(pinterpreter->theParser), &(pinterpreter->theContext),
                     &(pinterpreter->theInstructionList), scriptText, startingLineNumber, path );
    if(pinterpreter->theParser.errorFound)
    {
        return E_FAIL;
    }
    else
    {
        return S_OK;
    }
}
HRESULT Interpreter_ParseText ( Interpreter * pinterpreter , LPSTR scriptText , ULONG startingLineNumber , LPCSTR path ) { Parser_ParseText ( & ( pinterpreter -> theParser ) , & ( pinterpreter -> theContext ) , & ( pinterpreter -> theInstructionList ) , scriptText , startingLineNumber , path ) ; if ( pinterpreter -> theParser . errorFound ) { return E_FAIL ; } else { return S_OK ; } }
ParseText -- This method parses the text in scriptText into a string of
byte-codes for the interpreter to execute.
ParseText -- This method parses the text in scriptText into a string of byte - codes for the interpreter to execute .
//Parse the script