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

#include <earley-parser.h>

Collaboration diagram for v8::internal::torque::Symbol:

Public Member Functions

 Symbol ()=default
 
 Symbol (std::initializer_list< Rule > rules)
 
 Symbol (const Symbol &)=delete
 
Symboloperator= (const Symbol &)=delete
 
V8_EXPORT_PRIVATE Symboloperator= (std::initializer_list< Rule > rules)
 
bool IsTerminal () const
 
Rulerule (size_t index) const
 
size_t rule_number () const
 
void AddRule (const Rule &rule)
 
V8_EXPORT_PRIVATE std::optional< ParseResultRunAction (const Item *item, const LexerResult &tokens)
 

Private Attributes

std::vector< std::unique_ptr< Rule > > rules_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Symbol() [1/3]

v8::internal::torque::Symbol::Symbol ( )
default

◆ Symbol() [2/3]

v8::internal::torque::Symbol::Symbol ( std::initializer_list< Rule > rules)
inline

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

◆ Symbol() [3/3]

v8::internal::torque::Symbol::Symbol ( const Symbol & )
delete

Member Function Documentation

◆ AddRule()

void v8::internal::torque::Symbol::AddRule ( const Rule & rule)
inline

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

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

◆ IsTerminal()

bool v8::internal::torque::Symbol::IsTerminal ( ) const
inline

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

Here is the caller graph for this function:

◆ operator=() [1/2]

Symbol & v8::internal::torque::Symbol::operator= ( const Symbol & )
delete

◆ operator=() [2/2]

Symbol & v8::internal::torque::Symbol::operator= ( std::initializer_list< Rule > rules)

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

Here is the call graph for this function:

◆ rule()

Rule * v8::internal::torque::Symbol::rule ( size_t index) const
inline

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

Here is the caller graph for this function:

◆ rule_number()

size_t v8::internal::torque::Symbol::rule_number ( ) const
inline

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

Here is the caller graph for this function:

◆ RunAction()

std::optional< ParseResult > v8::internal::torque::Symbol::RunAction ( const Item * item,
const LexerResult & tokens )
inline

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

Here is the call graph for this function:

Member Data Documentation

◆ rules_

std::vector<std::unique_ptr<Rule> > v8::internal::torque::Symbol::rules_
private

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


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