Skip to content

Commit

Permalink
Strip trailing whitespaces [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed May 16, 2022
1 parent 3b3aa8e commit ef0e3e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sample/calc-ja.y
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ end
---- header
#
---- inner

def evaluate(str)
@tokens = []
until str.empty?
Expand Down
2 changes: 1 addition & 1 deletion sample/calc.y
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end
---- header
#
---- inner

def parse(str)
@q = []
until str.empty?
Expand Down
2 changes: 1 addition & 1 deletion sample/hash.y
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class HashParser
rule
hash : '{' contents '}' { val[1] }
| '{' '}' { Hash.new }
# Racc can handle string over 2 bytes.
contents: IDENT '=>' IDENT { {val[0] => val[2]} }
| contents ',' IDENT '=>' IDENT { val[0][val[2]] = val[4]; val[0] }
Expand Down
2 changes: 1 addition & 1 deletion sample/syntax.y
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ rule
print 'cba'
}
| cont

cont : A c2 B c2 C

c2 : C C C C C
Expand Down

0 comments on commit ef0e3e9

Please sign in to comment.