flooph 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flooph.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 397455cd933754f2e32524faf8fd77174b449924
|
4
|
+
data.tar.gz: 381df232799f92c66646faa4805fbf9262ed0470
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 409848c4904545dcee4b1a21a9e4ab07c18a0fbb073d179a8448832705c5014230d64ab98d11b4bdd7640b140cb718680ef1c2275c90000f4c71ada39292ab42
|
7
|
+
data.tar.gz: 20aa112d7f471bf833ee054cc4ced58b1c6528beb4d0628a4a26fdf82d24ce008367874d82d4c9b4f660ddba7cb78ac3148f6aaa9e22024c6fe84b8e1cc6a8c4
|
data/lib/flooph.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'parslet'
|
2
2
|
|
3
3
|
class Flooph < Parslet::Parser
|
4
|
-
VERSION = 0.1
|
4
|
+
VERSION = '0.1.1'
|
5
5
|
|
6
6
|
# The current values used when evaluating templates and conditionals.
|
7
7
|
# Can also be updated by user input using #update_variables.
|
@@ -166,7 +166,7 @@ class Flooph < Parslet::Parser
|
|
166
166
|
rule(:cmpOp) { (match['<>='] >> str('=').maybe) | match['≤≥≠'] | str('!=') }
|
167
167
|
|
168
168
|
# assignment
|
169
|
-
rule(:varset){ pair >> (
|
169
|
+
rule(:varset){ pair >> (str("\r").maybe >> str("\n") >> pair.maybe).repeat }
|
170
170
|
rule(:pair) { var.as(:set) >> sp >> str(':') >> sp >> value.as(:val) >> sp }
|
171
171
|
rule(:value) { bool | adds | num | text | var.as(:lookup) }
|
172
172
|
rule(:adds) { (var.as(:lookup) | num).as(:a) >> sp >> match['+-'].as(:addOp) >> sp >> (var.as(:lookup) | num).as(:b) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flooph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Kistner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parslet
|