-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #510 from ydah/refactor-binding
Refactor for Lrama::Grammar::Binding
- Loading branch information
Showing
4 changed files
with
68 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Generated from lib/lrama/grammar/binding.rb with RBS::Inline | ||
|
||
module Lrama | ||
class Grammar | ||
class Binding | ||
@actual_args: Array[Lexer::Token] | ||
|
||
@param_to_arg: Hash[String, Lexer::Token] | ||
|
||
# @rbs (Array[Lexer::Token] params, Array[Lexer::Token] actual_args) -> void | ||
def initialize: (Array[Lexer::Token] params, Array[Lexer::Token] actual_args) -> void | ||
|
||
# @rbs (Lexer::Token sym) -> Lexer::Token | ||
def resolve_symbol: (Lexer::Token sym) -> Lexer::Token | ||
|
||
# @rbs (Lexer::Token::InstantiateRule token) -> String | ||
def concatenated_args_str: (Lexer::Token::InstantiateRule token) -> String | ||
|
||
private | ||
|
||
# @rbs (Array[Lexer::Token] params, Array[Lexer::Token] actual_args) -> Hash[String, Lexer::Token] | ||
def map_params_to_args: (Array[Lexer::Token] params, Array[Lexer::Token] actual_args) -> Hash[String, Lexer::Token] | ||
|
||
# @rbs (Lexer::Token::InstantiateRule sym) -> Array[Lexer::Token] | ||
def resolved_args: (Lexer::Token::InstantiateRule sym) -> Array[Lexer::Token] | ||
|
||
# @rbs (Lexer::Token sym) -> Lexer::Token | ||
def param_to_arg: (Lexer::Token sym) -> Lexer::Token | ||
|
||
# @rbs (Lexer::Token::InstantiateRule token) -> Array[String] | ||
def token_to_args_s_values: (Lexer::Token::InstantiateRule token) -> Array[String] | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.