lamep 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lamep.gemspec +1 -1
- data/lib/lamep.rb +20 -20
- 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: e7df1ad53fccf129f90b344a1c85ec97fcc722f8
|
4
|
+
data.tar.gz: f8d8e690f2d63125ae50b67835b2bf6991a012a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec539f058ea8ad672158098d0570b037e464c2a45f5bb1248245993cb92a809271413748838bc40d3065950ee1c60f3a74de3fcefd390a7a45dfd815e4b289e3
|
7
|
+
data.tar.gz: af99d4045c28f09132ed13c586f0a3afa0dc50c7e57e4baecd7afdeedd704a5105e767ae5c1335fffb66b271c4d6d403b7f0d509c52999d586f754e43bbd73a8
|
data/lamep.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'lamep'
|
7
|
-
spec.version = 0.2
|
7
|
+
spec.version = '0.2.1'
|
8
8
|
spec.authors = ['Martin Svoboda', 'Miroslav Csonka']
|
9
9
|
spec.email = ['miroslav.csonka@gmail.com']
|
10
10
|
spec.summary = %q{Logical and mathematical expression parser}
|
data/lib/lamep.rb
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
1
|
+
require_relative 'lamep/exceptions/not_enough_operands_exception'
|
2
|
+
require_relative 'lamep/exceptions/not_enough_operators_exception'
|
3
|
+
require_relative 'lamep/exceptions/missing_left_parentheses_error'
|
4
|
+
require_relative 'lamep/exceptions/missing_right_parentheses_error'
|
5
|
+
require_relative 'lamep/Expressions/operator'
|
6
|
+
require_relative 'lamep/Expressions/arity1_operators'
|
7
|
+
require_relative 'lamep/Expressions/arity2_operators'
|
8
|
+
require_relative 'lamep/Expressions/value_expression'
|
9
|
+
require_relative 'lamep/token_parser'
|
10
|
+
require_relative 'lamep/shunting_yard'
|
11
|
+
require_relative 'lamep/Expressions/equal'
|
12
|
+
require_relative 'lamep/Expressions/greater_than'
|
13
|
+
require_relative 'lamep/Expressions/less_than'
|
14
|
+
require_relative 'lamep/Expressions/greater_than_equal'
|
15
|
+
require_relative 'lamep/Expressions/less_than_equal'
|
16
|
+
require_relative 'lamep/Expressions/and'
|
17
|
+
require_relative 'lamep/Expressions/or'
|
18
|
+
require_relative 'lamep/Expressions/unary_minus'
|
19
|
+
require_relative 'lamep/Expressions/not_equal'
|
20
|
+
require_relative 'lamep/abstract_syntax_tree_builder'
|
21
21
|
|
22
22
|
class Lamep
|
23
23
|
def evaluate(expression, attributes={})
|