dtr_core 0.2.6 → 0.2.7
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/dtr_core/supported_attributes.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbd3b08f52ae2f6b9801c67ada71ffc019de63c1b2f7442a5b7923733e8b073b
|
4
|
+
data.tar.gz: dadca4ebd8765b87ebd91244be19023fedda9f7c482319096ba40bd91b26853a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 247ba1cdb793d7174507d9639cd3aea54ac550e57d3de7f904e244b36d754663b3a7bfd3011fb1cd8e6916d92355b5438b0742adf45b8a18f6a9c8e8cf906c3d
|
7
|
+
data.tar.gz: a03686874827722ec117b20bd7dd86335e54b6a02f8b50c463f45ae2b7dfcb3ea55ac27373871fff4f858ed606f41795b27f95a52fe17618e6fa8793ba1b16d6
|
@@ -6,12 +6,14 @@ module DTRCore
|
|
6
6
|
## Instruction Categories ##
|
7
7
|
INSTRUCTION_CATEGORY_BASIC = 'basic'
|
8
8
|
INSTRUCTION_CATEGORY_STATE = 'state'
|
9
|
+
INSTRUCTION_CATEGORY_UNTYPED = 'untyped'
|
9
10
|
INSTRUCTION_CATEGORY_NUMERIC = 'numeric'
|
10
11
|
INSTRUCTION_CATEGORY_STRING = 'string'
|
11
12
|
INSTRUCTION_CATEGORY_ENVIRONMENT = 'environment'
|
12
13
|
INSTRUCTION_CATEGORIES = [
|
13
14
|
INSTRUCTION_CATEGORY_BASIC,
|
14
15
|
INSTRUCTION_CATEGORY_STATE,
|
16
|
+
INSTRUCTION_CATEGORY_UNTYPED,
|
15
17
|
INSTRUCTION_CATEGORY_NUMERIC,
|
16
18
|
INSTRUCTION_CATEGORY_STRING,
|
17
19
|
INSTRUCTION_CATEGORY_ENVIRONMENT
|
@@ -21,10 +23,11 @@ module DTRCore
|
|
21
23
|
# basic operations
|
22
24
|
{ name: 'return', description: 'Return a value from a function.', category: INSTRUCTION_CATEGORY_BASIC },
|
23
25
|
{ name: 'assign', description: 'Assign a value to a variable.', category: INSTRUCTION_CATEGORY_BASIC },
|
24
|
-
{ name: 'add', description: 'Add two things of unknown types together.', category: INSTRUCTION_CATEGORY_BASIC },
|
25
26
|
# state operations
|
26
27
|
{ name: 'fetch_state', description: 'Fetch a value from the state.', category: INSTRUCTION_CATEGORY_STATE },
|
27
28
|
{ name: 'save_state', description: 'Save a value to the state.', category: INSTRUCTION_CATEGORY_STATE },
|
29
|
+
# untyped operations
|
30
|
+
{ name: 'add', description: 'Add two things of unknown types together.', category: INSTRUCTION_CATEGORY_UNTYPED },
|
28
31
|
# numeric operations
|
29
32
|
{ name: 'add_numbers', description: 'Add two numbers.', category: INSTRUCTION_CATEGORY_NUMERIC },
|
30
33
|
{ name: 'subtract_numbers', description: 'Subtract two numbers.', category: INSTRUCTION_CATEGORY_NUMERIC },
|