yap-shell-parser 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/yap/shell/parser/grammar.y +1 -1
- data/lib/yap/shell/parser/lexer.rb +2 -1
- data/lib/yap/shell/parser/version.rb +1 -1
- data/lib/yap/shell/parser_impl.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b2657fa735f9d2e2c946e120f9c5aad74919824
|
4
|
+
data.tar.gz: 7eeb54709d154f1a5c19919cc2757a9da3ba15ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97abaa67b6f96ed4622b79c63699ed8232c2f276102e4093596979973d00228e3d62bbf9fd14fe880b174181c4f021fd25c818dd57790e80237377a7633ee55e
|
7
|
+
data.tar.gz: 3fea542b32d29319b14f854f31c91761ee8a0dec21563b6f78c62323e276db50404e7a0ee6fdff11e08f5b806700723e9e6a727f35e9ad1e73e6cf43c1afede8
|
@@ -103,7 +103,7 @@ module Yap::Shell
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def tokenize(str)
|
106
|
-
debug_log "##{__callee__}
|
106
|
+
debug_log "##{__callee__} entered with: #{str.inspect}"
|
107
107
|
@chunk = str
|
108
108
|
@tokens = []
|
109
109
|
@lineno = 0
|
@@ -152,6 +152,7 @@ module Yap::Shell
|
|
152
152
|
|
153
153
|
token :BlankLine, str if @tokens.empty?
|
154
154
|
|
155
|
+
debug_log "##{__callee__} exit returning: #{@tokens.inspect}"
|
155
156
|
@tokens
|
156
157
|
end
|
157
158
|
|
@@ -29,7 +29,7 @@ module_eval(<<'...end grammar.y/module_eval...', 'grammar.y', 125)
|
|
29
29
|
@yydebug = true
|
30
30
|
|
31
31
|
@q = Yap::Shell::Parser::Lexer.new.tokenize(str)
|
32
|
-
|
32
|
+
|
33
33
|
# @q.push [false, '$'] # is optional from Racc 1.3.7
|
34
34
|
# puts @q.inspect
|
35
35
|
# puts "---- parse tree follows ----"
|