bool 1.0.16-java → 1.0.18-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: 10f7634c31979cc8dc0fefc5e2a948be4c62ca06
4
- data.tar.gz: 5676b8ab7ee4e7664e147c998209f91f1af026b7
3
+ metadata.gz: 853809e2479331ecafabc419006c86a6889738a4
4
+ data.tar.gz: 1da491f9303cc81ed33d486810dc3d77cd1c6ef2
5
5
  SHA512:
6
- metadata.gz: 77a82d2ef78d4b974f26c9c23859d9e2ca8ecfebd09f0b1221bbaaa486563ca54f6a4076150e2f526fc758be5c47c494fc466dfbd00bf920f06e62cb64567d27
7
- data.tar.gz: 404b33735fe56fbe794f977b1acaa4eafe56c2532ef1cd8ada220cd3569c31a8b5047edcf790720c6b75de91f7d31c192f1c7ee79511f2cb2d51e34e9eba1288
6
+ metadata.gz: 79a4d67dc0cbfb12e8dcb523c552e5958337b91da56a3019c4d46ed8df6c4e4083a742036a5a67f11c59aa7d80365a79e89ea16b07515e022e4d98a97e20ed53
7
+ data.tar.gz: f71cfcfea0f73de8068c8a7adff039a7b969ff3bccf3f2fff82d3f94ab6516d11cfc116279ec0159185a09c8730a595135e1600271b623aaf583819c45dd1ba2
@@ -7,11 +7,11 @@ require 'bool/renderer'
7
7
 
8
8
  module Bool
9
9
  class SyntaxError < StandardError
10
- attr_reader :token
10
+ attr_reader :first_line, :first_column, :last_line, :last_column
11
11
 
12
- def initialize(message, token)
12
+ def initialize(message, first_line, first_column, last_line, last_column)
13
13
  super(message)
14
- @token = token
14
+ @first_line, @first_column, @last_line, @last_column = first_line, first_column, last_line, last_column
15
15
  end
16
16
  end
17
17
 
@@ -21,7 +21,7 @@ module Bool
21
21
  parser = Java::Bool::Parser.new(lexer)
22
22
  parser.buildAst()
23
23
  rescue => e
24
- raise SyntaxError.new(e.message, e.token)
24
+ raise SyntaxError.new(e.message, e.first_line, e.first_column, e.last_line, e.last_column)
25
25
  end
26
26
  module_function(:parse)
27
27
  else
@@ -3,10 +3,10 @@ module Bool
3
3
  # AST classes defined in bool_ext.jar
4
4
  else
5
5
  class Token
6
- attr_reader :value, :first_line, :last_line, :first_column, :last_column
6
+ attr_reader :value, :first_line, :first_column, :last_line, :last_column
7
7
 
8
- def initialize(value, first_line, last_line, first_column, last_column)
9
- @value, @first_line, @last_line, @first_column, @last_column = value, first_line, last_line, first_column, last_column
8
+ def initialize(value, first_line, first_column, last_line, last_column)
9
+ @value, @first_line, @first_column, @last_line, @last_column = value, first_line, first_column, last_line, last_column
10
10
  end
11
11
  end
12
12
 
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.16
4
+ version: 1.0.18
5
5
  platform: java
6
6
  authors:
7
7
  - Aslak Hellesøy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-15 00:00:00.000000000 Z
11
+ date: 2013-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3.0
33
+ version: 1.3.5
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 1.3.0
40
+ version: 1.3.5
41
41
  description:
42
42
  email:
43
43
  executables: []
@@ -68,8 +68,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  requirements: []
70
70
  rubyforge_project:
71
- rubygems_version: 2.0.0
71
+ rubygems_version: 2.0.3
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: Boolean expression evaluator
75
75
  test_files: []
76
+ has_rdoc: