ruby-ll 1.1.0-java → 1.1.1-java

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: 06f9ad3dfe90842c1422c69bb269f1731aebe32c
4
- data.tar.gz: a7d4d5d8a177da5581cbc7ada29098ae40b697df
3
+ metadata.gz: 71b0b0922f3ab77cf44b3fe39c5f7f43b63ea3ba
4
+ data.tar.gz: cd6cc04d8c333d87b3be569289ed43e13734320e
5
5
  SHA512:
6
- metadata.gz: e895126880a8ec33adeffc3655dfd55173607ab032e0fdac9b65c91b69d457a2835e33b772c73b29dc95cb4cf7712cbf061d067d0b9bfe2532b3d866e4293531
7
- data.tar.gz: 322a99b744e74efe86185524c8c7bf86d2f4df95e4f85ab5537fbe7fbe7306127df1d6d262c09deaf487a5f46483853432255bc87a084206b6aae680734b921e
6
+ metadata.gz: de0436d0863ac48b8acde874009678a91f91e857d64139c6c5d8a3276ace6c6cb795e8941f4798ac731977a091816420b8860dd5ce32f41f2d0a6235fc79ff16
7
+ data.tar.gz: b04a41de473b806f7d53570c5e70e52291565b13a4c5dd28219294695d4cc12ea35c87c1f46ea5977f653c72ae4891463da8a0f37bad1564e0a7065d077ae95f
data/doc/changelog.md CHANGED
@@ -3,6 +3,11 @@
3
3
  This document contains details of the various releases and their release dates.
4
4
  Dates are in the format `yyyy-mm-dd`.
5
5
 
6
+ ## 1.1.1 - 2015-02-16
7
+
8
+ Parser errors produced by ruby-ll's own parser/grammar now include the line
9
+ number/column number whenever possible.
10
+
6
11
  ## 1.1.0 - 2015-02-16
7
12
 
8
13
  This release changes the way error handling is done. Instead of having multiple,
data/lib/libll.jar CHANGED
Binary file
data/lib/ll/parser.rb CHANGED
@@ -135,6 +135,20 @@ class Parser < LL::Driver
135
135
  return AST::Node.new(*args)
136
136
  end
137
137
 
138
+ ##
139
+ # @see [LL::Driver#parser_error]
140
+ #
141
+ def parser_error(stack_type, stack_value, token_type, token_value)
142
+ message = parser_error_message(stack_type, stack_value, token_type)
143
+
144
+ if token_value.is_a?(LL::Token)
145
+ sl = token_value.source_line
146
+ message += " (line #{sl.line}, column #{sl.column})"
147
+ end
148
+
149
+ raise ParserError, message
150
+ end
151
+
138
152
  def _rule_0(val)
139
153
  s(:grammar, val[0])
140
154
  end
data/lib/ll/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module LL
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end # LL
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-ll
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: java
6
6
  authors:
7
7
  - Yorick Peterse