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 +4 -4
- data/doc/changelog.md +5 -0
- data/lib/libll.jar +0 -0
- data/lib/ll/parser.rb +14 -0
- data/lib/ll/version.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: 71b0b0922f3ab77cf44b3fe39c5f7f43b63ea3ba
|
4
|
+
data.tar.gz: cd6cc04d8c333d87b3be569289ed43e13734320e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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