dtr_core 0.12.2 → 0.12.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dtr_core/supported_attributes.rb +7 -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: 7efd147e6163db925e32749c8ffb2779aca9c1e1b45b295ab96fed158a709b97
|
4
|
+
data.tar.gz: cc3cb8a6509fdde361504788632bb61bec5d2ec02259fdd1f95525e4d7cf792c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dec93fdc2c254fdda132aa340fcb5deb8725017896e6c14f1a9efdfcead20fb1cb3e363033163cc6bf5c0612b4ad0b9a84eab48548bf0aab9ce5163db6d16e54
|
7
|
+
data.tar.gz: fefe354e93df2098a62a993f8f6a019cfe76a9b2e0d5434f9ce17c1a13b6c2e68226c2c5213b78e86d82b5d70b5cc5ebcad14d3f2f7cbd81a6cc68d3d0a13164
|
@@ -7,6 +7,7 @@ module DTRCore
|
|
7
7
|
## Instruction Categories ##
|
8
8
|
INSTRUCTION_CATEGORY_BASIC = 'basic'
|
9
9
|
INSTRUCTION_CATEGORY_BINARY = 'binary'
|
10
|
+
INSTRUCTION_CATEGORY_UNARY = 'unary'
|
10
11
|
INSTRUCTION_CATEGORY_CONTROL_FLOW = 'control_flow'
|
11
12
|
INSTRUCTION_CATEGORY_TERMINATING = 'terminating'
|
12
13
|
INSTRUCTION_CATEGORY_LOGICAL = 'logical'
|
@@ -59,7 +60,12 @@ module DTRCore
|
|
59
60
|
{ name: 'multiply', description: 'assign to ASSIGN_NAME result of multiplying two value',
|
60
61
|
category: INSTRUCTION_CATEGORY_BINARY },
|
61
62
|
{ name: 'divide', description: 'assign to ASSIGN_NAME result of dividing two value',
|
62
|
-
category: INSTRUCTION_CATEGORY_BINARY }
|
63
|
+
category: INSTRUCTION_CATEGORY_BINARY },
|
64
|
+
{ name: 'increment', description: 'set the first value to the .next() of the input value',
|
65
|
+
category: INSTRUCTION_CATEGORY_UNARY },
|
66
|
+
{ name: 'unary', description: 'assign to ASSIGN_NAME result of unary operation on input value', category: INSTRUCTION_CATEGORY_UNARY },
|
67
|
+
{ name: 'break', description: 'break out of loop', category: INSTRUCTION_CATEGORY_CONTROL_FLOW },
|
68
|
+
{ name: 'try_assign', description: 'assign the first input to the second input. The assign if the result of this assignment attempt.', category: INSTRUCTION_CATEGORY_LOGICAL }
|
63
69
|
].freeze
|
64
70
|
|
65
71
|
# Supported Types for DTR.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dtr_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Durst
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |+
|
14
14
|
Ruby gem serving as the reference implementation for the parsing and consumption of Digicus Textual Representation (DTR). We expect folks to leverage this gem when writing Digicus compiler plugins.
|