v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RegExpParser Class Reference

#include <parser.h>

Public Member Functions

 RegExpParser (FlatStringReader *in, Handle< String > *error, bool multiline_mode, Zone *zone)
 
RegExpTreeParsePattern ()
 
RegExpTreeParseDisjunction ()
 
RegExpTreeParseGroup ()
 
RegExpTreeParseCharacterClass ()
 
bool ParseIntervalQuantifier (int *min_out, int *max_out)
 
uc32 ParseClassCharacterEscape ()
 
bool ParseHexEscape (int length, uc32 *value)
 
uc32 ParseOctalLiteral ()
 
bool ParseBackReferenceIndex (int *index_out)
 
CharacterRange ParseClassAtom (uc16 *char_class)
 
RegExpTreeReportError (Vector< const char > message)
 
void Advance ()
 
void Advance (int dist)
 
void Reset (int pos)
 
bool simple ()
 
bool contains_anchor ()
 
void set_contains_anchor ()
 
int captures_started ()
 
int position ()
 
bool failed ()
 

Static Public Member Functions

static bool ParseRegExp (FlatStringReader *input, bool multiline, RegExpCompileData *result, Zone *zone)
 

Static Public Attributes

static const int kMaxCaptures = 1 << 16
 
static const uc32 kEndMarker = (1 << 21)
 

Detailed Description

Definition at line 299 of file parser.h.

Constructor & Destructor Documentation

RegExpParser ( FlatStringReader in,
Handle< String > *  error,
bool  multiline_mode,
Zone zone 
)

Definition at line 5010 of file parser.cc.

References RegExpParser::Advance().

Member Function Documentation

void Advance ( int  dist)

Definition at line 5065 of file parser.cc.

References RegExpParser::Advance().

int captures_started ( )
inline
bool contains_anchor ( )
inline

Definition at line 345 of file parser.h.

Referenced by RegExpParser::ParseRegExp().

bool failed ( )
inline

Definition at line 349 of file parser.h.

Referenced by RegExpParser::ParseRegExp().

uc32 ParseClassCharacterEscape ( )
RegExpTree* ParseGroup ( )
bool ParseHexEscape ( int  length,
uc32 value 
)
bool ParseIntervalQuantifier ( int *  min_out,
int *  max_out 
)
uc32 ParseOctalLiteral ( )
RegExpTree * ParsePattern ( )
void set_contains_anchor ( )
inline

Definition at line 346 of file parser.h.

Referenced by RegExpParser::ParseDisjunction().

bool simple ( )

Definition at line 5071 of file parser.cc.

Referenced by RegExpParser::ParseRegExp().

Field Documentation

const int kMaxCaptures = 1 << 16
static

The documentation for this class was generated from the following files: