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

#include <earley-parser.h>

Collaboration diagram for v8::internal::torque::Rule:

Public Member Functions

 Rule (std::vector< Symbol * > right_hand_side, Action action=DefaultAction)
 
Symbolleft () const
 
const std::vector< Symbol * > & right () const
 
void SetLeftHandSide (Symbol *left_hand_side)
 
V8_EXPORT_PRIVATE std::optional< ParseResultRunAction (const Item *completed_item, const LexerResult &tokens) const
 

Private Attributes

Symbolleft_hand_side_ = nullptr
 
std::vector< Symbol * > right_hand_side_
 
Action action_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Rule()

v8::internal::torque::Rule::Rule ( std::vector< Symbol * > right_hand_side,
Action action = DefaultAction )
inlineexplicit

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

Member Function Documentation

◆ left()

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

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

◆ right()

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

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

Here is the caller graph for this function:

◆ RunAction()

std::optional< ParseResult > v8::internal::torque::Rule::RunAction ( const Item * completed_item,
const LexerResult & tokens ) const

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

Here is the call graph for this function:

◆ SetLeftHandSide()

void v8::internal::torque::Rule::SetLeftHandSide ( Symbol * left_hand_side)
inline

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

Member Data Documentation

◆ action_

Action v8::internal::torque::Rule::action_
private

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

◆ left_hand_side_

Symbol* v8::internal::torque::Rule::left_hand_side_ = nullptr
private

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

◆ right_hand_side_

std::vector<Symbol*> v8::internal::torque::Rule::right_hand_side_
private

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


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