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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 242efbb99a793163e085853ecaf69ef2e07d8bd0fc2952fdc7490d116d09af4a
4
- data.tar.gz: 3c363a459f8e5d23d2e81d188fa160deb567fb6a25cca378a5ae5f73a82cc16d
3
+ metadata.gz: bbd3b08f52ae2f6b9801c67ada71ffc019de63c1b2f7442a5b7923733e8b073b
4
+ data.tar.gz: dadca4ebd8765b87ebd91244be19023fedda9f7c482319096ba40bd91b26853a
5
5
  SHA512:
6
- metadata.gz: 012c681fee649284f6ea504c68aa5c3b9ffd7fba9b4bf458fd45ecd88541c2d32f5b8b30ad44ebbdd7050237a0d2e479c812c1586014bdb84bf564a4282425e8
7
- data.tar.gz: 7e7aefdd93759b7c3286ba14436a4540c32d01d276c1d587226b109dfb6f44dfb1a2e47543a9ecd19bb78bec075716ff0b6585a275cbdb3e7fb85f9bb2cf26db
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 },
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtr_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Durst