kumi-parser 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kumi/parser/token_constants.rb +12 -1
- data/lib/kumi/parser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bc1abe5a6e23f15904189f2d1f8550a5c88b5441318ba95a2df9b6437daca570
|
|
4
|
+
data.tar.gz: 851f8dbdd42fcc3210214e48223466d7e3dbb19a8802227c184a5b7b442df48b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 433f85f8185b8d4b88982358ef3291c5b445e811b107cd9c0300414fd47066dd70f2b5970357d79406d02c1dc0ec72611f3282d4f39c23dbc820c127dbbbd6ba
|
|
7
|
+
data.tar.gz: df753a5c5b8bcf4fdcb50e03d6f4ebef3162af9f0ff4d445941aa39da3e2b5265cdc460942f099cbfc8c191451088098a55d19d47102cb9b629f4bcedafc6426
|
|
@@ -28,6 +28,7 @@ module Kumi
|
|
|
28
28
|
# Type keywords
|
|
29
29
|
INTEGER_TYPE = :integer_type # integer
|
|
30
30
|
FLOAT_TYPE = :float_type # float
|
|
31
|
+
DECIMAL_TYPE = :decimal_type # decimal
|
|
31
32
|
STRING_TYPE = :string_type # string
|
|
32
33
|
BOOLEAN_TYPE = :boolean_type # boolean
|
|
33
34
|
ANY_TYPE = :any_type # any
|
|
@@ -130,6 +131,11 @@ module Kumi
|
|
|
130
131
|
starts_declaration: true,
|
|
131
132
|
type_name: :float
|
|
132
133
|
},
|
|
134
|
+
decimal_type: {
|
|
135
|
+
category: :type_keyword,
|
|
136
|
+
starts_declaration: true,
|
|
137
|
+
type_name: :decimal
|
|
138
|
+
},
|
|
133
139
|
string_type: {
|
|
134
140
|
category: :type_keyword,
|
|
135
141
|
starts_declaration: true,
|
|
@@ -401,7 +407,11 @@ module Kumi
|
|
|
401
407
|
'select' => '__select__',
|
|
402
408
|
'shift' => 'shift',
|
|
403
409
|
'roll' => 'roll',
|
|
404
|
-
'index' => 'index'
|
|
410
|
+
'index' => 'index',
|
|
411
|
+
'to_decimal' => 'to_decimal',
|
|
412
|
+
'to_integer' => 'to_integer',
|
|
413
|
+
'to_float' => 'to_float',
|
|
414
|
+
'to_string' => 'to_string'
|
|
405
415
|
}
|
|
406
416
|
|
|
407
417
|
# Keywords mapping
|
|
@@ -420,6 +430,7 @@ module Kumi
|
|
|
420
430
|
'false' => :boolean,
|
|
421
431
|
'integer' => :integer_type,
|
|
422
432
|
'float' => :float_type,
|
|
433
|
+
'decimal' => :decimal_type,
|
|
423
434
|
'string' => :string_type,
|
|
424
435
|
'boolean' => :boolean_type,
|
|
425
436
|
'any' => :any_type,
|
data/lib/kumi/parser/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kumi-parser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.28
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kumi Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-10-
|
|
11
|
+
date: 2025-10-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: parslet
|