KJS::Parser
KJS::Parser Class Reference
#include <Parser.h>
Inherits WTFNoncopyable::Noncopyable.
Public Member Functions | |
void | didFinishParsing (PassRefPtr< ProgramNode >) |
PassRefPtr< FunctionBodyNode > | parseFunctionBody (const UString &sourceURL, int startingLineNumber, const UChar *code, unsigned length, int *sourceId=nullptr, int *errLine=nullptr, UString *errMsg=nullptr) |
PassRefPtr< ProgramNode > | parseProgram (const UString &sourceURL, int startingLineNumber, const UChar *code, unsigned length, int *sourceId=nullptr, int *errLine=nullptr, UString *errMsg=nullptr) |
unsigned | popFunctionContext () |
void | pushFunctionContext (unsigned initialFlags) |
void | setFunctionFlags (unsigned newFlags) |
int | sourceId () |
Static Public Member Functions | |
static void | noteNodeCycle (Node *) |
static void | removeNodeCycle (Node *) |
Detailed Description
Parses ECMAScript source code and converts into ProgramNode objects, which represent the root of a parse tree. The tree is then semantically checked with a semantic analyzer. This class provides a convenient workaround for the problem of the bison parser working in a static context.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 03:56:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 03:56:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.