Class: PryCoolline::ParenMatch::Parser
- Inherits:
-
Object
- Object
- PryCoolline::ParenMatch::Parser
- Defined in:
- lib/pry-coolline/paren_match.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code, pairs = Pairs) ⇒ Parser
constructor
A new instance of Parser.
-
#next_token ⇒ Token
Returns the next token found in the array and removes it.
- #parse ⇒ AST::Root
Constructor Details
Class Method Details
Instance Method Details
#next_token ⇒ Token
Returns the next token found in the array and removes it.
190 191 192 |
# File 'lib/pry-coolline/paren_match.rb', line 190 def next_token @tokens.shift end |