Updated parser class name
This commit is contained in:
parent
5f8041c60f
commit
a41abe8963
1 changed files with 3 additions and 3 deletions
|
@ -8,11 +8,11 @@ module Sexpr
|
||||||
alias Node = String | Body
|
alias Node = String | Body
|
||||||
alias Body = Array(String) | Array(Node)
|
alias Body = Array(String) | Array(Node)
|
||||||
|
|
||||||
private class Wrapper
|
class Parser
|
||||||
private property i = 0
|
private property i = 0
|
||||||
private property source : String
|
private property source : String
|
||||||
|
|
||||||
private module Terms
|
module Terms
|
||||||
STRING = /"/
|
STRING = /"/
|
||||||
SPACE = /\s/
|
SPACE = /\s/
|
||||||
LIST = /(#{SPACE})|[()]/
|
LIST = /(#{SPACE})|[()]/
|
||||||
|
@ -70,6 +70,6 @@ module Sexpr
|
||||||
end
|
end
|
||||||
|
|
||||||
def parse(source : String) : Body
|
def parse(source : String) : Body
|
||||||
Wrapper.new(remove_comments(source)).parse
|
Parser.new(remove_comments(source)).parse
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue