Updated parser class name

This commit is contained in:
Dominic Grimm 2021-12-27 18:57:19 +01:00
parent 5f8041c60f
commit a41abe8963
1 changed files with 3 additions and 3 deletions

View File

@ -8,11 +8,11 @@ module Sexpr
alias Node = String | Body
alias Body = Array(String) | Array(Node)
private class Wrapper
class Parser
private property i = 0
private property source : String
private module Terms
module Terms
STRING = /"/
SPACE = /\s/
LIST = /(#{SPACE})|[()]/
@ -70,6 +70,6 @@ module Sexpr
end
def parse(source : String) : Body
Wrapper.new(remove_comments(source)).parse
Parser.new(remove_comments(source)).parse
end
end