v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <ast.h>
Public Member Functions | |
virtual | ~RegExpTree () |
virtual void * | Accept (RegExpVisitor *visitor, void *data)=0 |
virtual RegExpNode * | ToNode (RegExpCompiler *compiler, RegExpNode *on_success)=0 |
virtual bool | IsTextElement () |
virtual bool | IsAnchoredAtStart () |
virtual bool | IsAnchoredAtEnd () |
virtual int | min_match ()=0 |
virtual int | max_match ()=0 |
virtual Interval | CaptureRegisters () |
virtual void | AppendToText (RegExpText *text, Zone *zone) |
SmartArrayPointer< const char > | ToString (Zone *zone) |
Public Member Functions inherited from ZoneObject | |
INLINE (void *operator new(size_t size, Zone *zone)) | |
void | operator delete (void *, size_t) |
void | operator delete (void *pointer, Zone *zone) |
Static Public Attributes | |
static const int | kInfinity = kMaxInt |
|
inlinevirtual |
|
pure virtual |
Implemented in RegExpEmpty, RegExpBackReference, RegExpLookahead, RegExpCapture, RegExpQuantifier, RegExpText, RegExpAtom, RegExpCharacterClass, RegExpAssertion, RegExpAlternative, and RegExpDisjunction.
Referenced by RegExpTree::ToString().
|
virtual |
Reimplemented in RegExpText, RegExpAtom, and RegExpCharacterClass.
Definition at line 975 of file jsregexp.cc.
References UNREACHABLE.
|
inlinevirtual |
Reimplemented in RegExpLookahead, RegExpCapture, RegExpQuantifier, RegExpAlternative, and RegExpDisjunction.
Definition at line 2137 of file ast.h.
References Interval::Empty().
Referenced by RegExpQuantifier::ToNode().
|
inlinevirtual |
Reimplemented in RegExpCapture, RegExpAssertion, RegExpAlternative, and RegExpDisjunction.
Definition at line 2132 of file ast.h.
Referenced by RegExpEngine::Compile(), and RegExpAlternative::IsAnchoredAtEnd().
|
inlinevirtual |
Reimplemented in RegExpLookahead, RegExpCapture, RegExpAssertion, RegExpAlternative, and RegExpDisjunction.
Definition at line 2131 of file ast.h.
Referenced by RegExpEngine::Compile(), and RegExpAlternative::IsAnchoredAtStart().
|
inlinevirtual |
Reimplemented in RegExpText, RegExpAtom, and RegExpCharacterClass.
Definition at line 2130 of file ast.h.
Referenced by RegExpBuilder::AddAtom().
|
pure virtual |
Implemented in RegExpEmpty, RegExpBackReference, RegExpLookahead, RegExpCapture, RegExpQuantifier, RegExpText, RegExpAtom, RegExpCharacterClass, RegExpAssertion, RegExpAlternative, and RegExpDisjunction.
Referenced by RegExpBuilder::AddQuantifierToAtom(), RegExpEngine::Compile(), RegExpAlternative::IsAnchoredAtEnd(), RegExpAlternative::IsAnchoredAtStart(), RegExpAlternative::RegExpAlternative(), RegExpDisjunction::RegExpDisjunction(), and RegExpQuantifier::RegExpQuantifier().
|
pure virtual |
Implemented in RegExpEmpty, RegExpBackReference, RegExpLookahead, RegExpCapture, RegExpQuantifier, RegExpText, RegExpAtom, RegExpCharacterClass, RegExpAssertion, RegExpAlternative, and RegExpDisjunction.
Referenced by RegExpEngine::Compile(), RegExpAlternative::RegExpAlternative(), RegExpDisjunction::RegExpDisjunction(), and RegExpQuantifier::ToNode().
|
pure virtual |
Implemented in RegExpEmpty, RegExpBackReference, RegExpLookahead, RegExpCapture, RegExpQuantifier, RegExpText, RegExpAtom, RegExpCharacterClass, RegExpAssertion, RegExpAlternative, and RegExpDisjunction.
Referenced by RegExpQuantifier::ToNode(), and RegExpCapture::ToNode().
SmartArrayPointer< const char > ToString | ( | Zone * | zone | ) |
Definition at line 956 of file ast.cc.
References RegExpTree::Accept(), v8::internal::NULL, and RegExpUnparser::ToString().
|
static |
Definition at line 2125 of file ast.h.
Referenced by RegExpEngine::Compile(), RegExpParser::ParseDisjunction(), RegExpParser::ParseIntervalQuantifier(), TEST(), and RegExpQuantifier::ToNode().