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

#include <earley-parser.h>

Collaboration diagram for v8::internal::torque::Lexer:

Public Types

using PatternFunction = bool (*)(InputPosition* pos)
 

Public Member Functions

void SetWhitespace (PatternFunction whitespace)
 
SymbolPattern (PatternFunction pattern)
 
SymbolToken (const std::string &keyword)
 
V8_EXPORT_PRIVATE LexerResult RunLexer (const std::string &input)
 

Private Member Functions

SymbolMatchToken (InputPosition *pos, InputPosition end)
 

Private Attributes

PatternFunction match_whitespace_ = [](InputPosition*) { return false; }
 
std::map< PatternFunction, Symbolpatterns_
 
std::map< std::string, Symbolkeywords_
 

Detailed Description

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

Member Typedef Documentation

◆ PatternFunction

Member Function Documentation

◆ MatchToken()

Symbol * v8::internal::torque::Lexer::MatchToken ( InputPosition * pos,
InputPosition end )
private

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

Here is the caller graph for this function:

◆ Pattern()

Symbol * v8::internal::torque::Lexer::Pattern ( PatternFunction pattern)
inline

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

Here is the caller graph for this function:

◆ RunLexer()

LexerResult v8::internal::torque::Lexer::RunLexer ( const std::string & input)

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

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

◆ SetWhitespace()

void v8::internal::torque::Lexer::SetWhitespace ( PatternFunction whitespace)
inline

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

Here is the caller graph for this function:

◆ Token()

Symbol * v8::internal::torque::Lexer::Token ( const std::string & keyword)
inline

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

Here is the caller graph for this function:

Member Data Documentation

◆ keywords_

std::map<std::string, Symbol> v8::internal::torque::Lexer::keywords_
private

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

◆ match_whitespace_

PatternFunction v8::internal::torque::Lexer::match_whitespace_ = [](InputPosition*) { return false; }
private

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

◆ patterns_

std::map<PatternFunction, Symbol> v8::internal::torque::Lexer::patterns_
private

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


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