summaryrefslogtreecommitdiff
path: root/test/racc/assets/intp.y
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-31 00:54:50 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-04 09:28:01 +0900
commitcbbdb4e5a2eb46750d3c455def99486d23fc625b (patch)
tree511846bff469875606fbf51193057a3fa7ac31ed /test/racc/assets/intp.y
parent046be65c08e10973fccc19a04b95a9422a2dae65 (diff)
[ruby/racc] Strip trailing whitespaces at the last line of actions
https://github.com/ruby/racc/commit/a887ebe529
Diffstat (limited to 'test/racc/assets/intp.y')
-rw-r--r--test/racc/assets/intp.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/racc/assets/intp.y b/test/racc/assets/intp.y
index 24e547da61..39e42afd74 100644
--- a/test/racc/assets/intp.y
+++ b/test/racc/assets/intp.y
@@ -27,7 +27,7 @@ rule
result.push val[1]
}
| stmt_list EOL
-
+
stmt : expr
| assign
| IDENT realprim
@@ -38,7 +38,7 @@ rule
| if_stmt
| while_stmt
| defun
-
+
if_stmt : IF stmt THEN EOL stmt_list else_stmt END
{
result = IfNode.new( @fname, val[0][0],
@@ -261,7 +261,7 @@ module Intp
class Core
- def initialize
+ def initialize
@ftab = {}
@obj = Object.new
@stack = []
@@ -318,7 +318,7 @@ module Intp
def lvar?(name)
@lvars.key? name
end
-
+
def [](key)
@lvars[key]
end