v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::torque::Item Class Reference

#include <earley-parser.h>

Collaboration diagram for v8::internal::torque::Item:

Public Member Functions

 Item (const Rule *rule, size_t mark, size_t start, size_t pos)
 
bool IsComplete () const
 
SymbolNextSymbol () const
 
Item Advance (size_t new_pos, const Item *child=nullptr) const
 
std::vector< const Item * > Children () const
 
std::string SplitByChildren (const LexerResult &tokens) const
 
void CheckAmbiguity (const Item &other, const LexerResult &tokens) const
 
MatchedInput GetMatchedInput (const LexerResult &tokens) const
 
bool operator== (const Item &other) const
 
const Rulerule () const
 
Symbolleft () const
 
const std::vector< Symbol * > & right () const
 
size_t pos () const
 
size_t start () const
 

Private Attributes

const Rulerule_
 
size_t mark_
 
size_t start_
 
size_t pos_
 
const Itemprev_ = nullptr
 
const Itemchild_ = nullptr
 

Friends

size_t hash_value (const Item &i)
 

Detailed Description

Definition at line 279 of file earley-parser.h.

Constructor & Destructor Documentation

◆ Item()

v8::internal::torque::Item::Item ( const Rule * rule,
size_t mark,
size_t start,
size_t pos )
inline

Definition at line 281 of file earley-parser.h.

Here is the call graph for this function:

Member Function Documentation

◆ Advance()

Item v8::internal::torque::Item::Advance ( size_t new_pos,
const Item * child = nullptr ) const
inline

Definition at line 305 of file earley-parser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckAmbiguity()

void v8::internal::torque::Item::CheckAmbiguity ( const Item & other,
const LexerResult & tokens ) const

Definition at line 98 of file earley-parser.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Children()

std::vector< const Item * > v8::internal::torque::Item::Children ( ) const

Definition at line 71 of file earley-parser.cc.

Here is the caller graph for this function:

◆ GetMatchedInput()

MatchedInput v8::internal::torque::Item::GetMatchedInput ( const LexerResult & tokens) const
inline

Definition at line 325 of file earley-parser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsComplete()

bool v8::internal::torque::Item::IsComplete ( ) const
inline

Definition at line 288 of file earley-parser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ left()

Symbol * v8::internal::torque::Item::left ( ) const
inline

Definition at line 347 of file earley-parser.h.

Here is the caller graph for this function:

◆ NextSymbol()

Symbol * v8::internal::torque::Item::NextSymbol ( ) const
inline

Definition at line 295 of file earley-parser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator==()

bool v8::internal::torque::Item::operator== ( const Item & other) const
inline

Definition at line 337 of file earley-parser.h.

◆ pos()

size_t v8::internal::torque::Item::pos ( ) const
inline

Definition at line 349 of file earley-parser.h.

Here is the caller graph for this function:

◆ right()

const std::vector< Symbol * > & v8::internal::torque::Item::right ( ) const
inline

Definition at line 348 of file earley-parser.h.

Here is the caller graph for this function:

◆ rule()

const Rule * v8::internal::torque::Item::rule ( ) const
inline

Definition at line 346 of file earley-parser.h.

Here is the caller graph for this function:

◆ SplitByChildren()

std::string v8::internal::torque::Item::SplitByChildren ( const LexerResult & tokens) const

Definition at line 82 of file earley-parser.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ start()

size_t v8::internal::torque::Item::start ( ) const
inline

Definition at line 350 of file earley-parser.h.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ hash_value

size_t hash_value ( const Item & i)
friend

Definition at line 342 of file earley-parser.h.

Member Data Documentation

◆ child_

const Item* v8::internal::torque::Item::child_ = nullptr
private

Definition at line 359 of file earley-parser.h.

◆ mark_

size_t v8::internal::torque::Item::mark_
private

Definition at line 354 of file earley-parser.h.

◆ pos_

size_t v8::internal::torque::Item::pos_
private

Definition at line 356 of file earley-parser.h.

◆ prev_

const Item* v8::internal::torque::Item::prev_ = nullptr
private

Definition at line 358 of file earley-parser.h.

◆ rule_

const Rule* v8::internal::torque::Item::rule_
private

Definition at line 353 of file earley-parser.h.

◆ start_

size_t v8::internal::torque::Item::start_
private

Definition at line 355 of file earley-parser.h.


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