yap-shell-parser 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cbb2bd60f57e8a7ec75043614f19ca42b6a5b87
4
- data.tar.gz: 91050d9396ad122987af76764bca6810ac99546c
3
+ metadata.gz: 3b2657fa735f9d2e2c946e120f9c5aad74919824
4
+ data.tar.gz: 7eeb54709d154f1a5c19919cc2757a9da3ba15ef
5
5
  SHA512:
6
- metadata.gz: a9d8a4feabef744b97369765d8dda04f92964f92ec7f8f47c159dca53d76dbeee25c4d7635911c99eb709fa9d44739e0d7994ec34cff78ee5492b4db616254ca
7
- data.tar.gz: 1037679abed76641c88652aa503064093f9a77ed7420c9fd31c7b62c27df8b0fdbfe1254a7bb295b45197939863a62ef8c3f057c63fe93a62c0cf6223c8d495d
6
+ metadata.gz: 97abaa67b6f96ed4622b79c63699ed8232c2f276102e4093596979973d00228e3d62bbf9fd14fe880b174181c4f021fd25c818dd57790e80237377a7633ee55e
7
+ data.tar.gz: 3fea542b32d29319b14f854f31c91761ee8a0dec21563b6f78c62323e276db50404e7a0ee6fdff11e08f5b806700723e9e6a727f35e9ad1e73e6cf43c1afede8
@@ -129,7 +129,7 @@ end
129
129
  @yydebug = true
130
130
 
131
131
  @q = Yap::Shell::Parser::Lexer.new.tokenize(str)
132
- pp @q if ENV["DEBUG"]
132
+
133
133
  # @q.push [false, '$'] # is optional from Racc 1.3.7
134
134
  # puts @q.inspect
135
135
  # puts "---- parse tree follows ----"
@@ -103,7 +103,7 @@ module Yap::Shell
103
103
  end
104
104
 
105
105
  def tokenize(str)
106
- debug_log "##{__callee__} string: #{str.inspect}"
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
 
@@ -3,7 +3,7 @@ require 'yap/shell/parser'
3
3
  module Yap
4
4
  module Shell
5
5
  module Parser
6
- VERSION = "0.6.0"
6
+ VERSION = "0.6.1"
7
7
  end
8
8
  end
9
9
  end
@@ -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
- pp @q if ENV["DEBUG"]
32
+
33
33
  # @q.push [false, '$'] # is optional from Racc 1.3.7
34
34
  # puts @q.inspect
35
35
  # puts "---- parse tree follows ----"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yap-shell-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Dennis