Skip to content

Commit

Permalink
Implement InputParser.parse
Browse files Browse the repository at this point in the history
  • Loading branch information
apexatoll committed Sep 18, 2023
1 parent 947027e commit df4cd3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/kangaru/input_parsers/input_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ def command_tokens
def argument_tokens
tokens.drop_while { |token| !token.match?(ARGUMENT_TOKEN) }
end

def self.parse(tokens)
new(tokens).parse
end
end
end
end
2 changes: 2 additions & 0 deletions sig/kangaru/input_parsers/input_parser.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module Kangaru
def command_tokens: -> tokens

def argument_tokens: -> tokens

def self.parse: (tokens) -> untyped
end
end
end

0 comments on commit df4cd3f

Please sign in to comment.