KJS::Parser

#include <Parser.h>

Inherits WTFNoncopyable::Noncopyable.

Public Member Functions

void didFinishParsing (PassRefPtr< ProgramNode >)
 
PassRefPtr< FunctionBodyNodeparseFunctionBody (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 *)
 

Friends

Parserparser ()
 

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.

Definition at line 50 of file Parser.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 10 2020 23:04:04 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.