dtr_core 0.12.2 → 0.12.3

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: 80562b71d3e4df50c402ade0b30641d3dc5557dcc67c05fa948edd5d5007ff83
4
- data.tar.gz: 42b2d9d62e6344cb48fb7b31a6c2d7018a11991668b491662c8636256d0b6d78
3
+ metadata.gz: 85ff3c49c332f69c8423696053b23021e14e3e4d4e1d6315d66d7c37cf0c689c
4
+ data.tar.gz: aff32475fdf033d0a7422d0ad5bd703012d227ecd66965aece8309cb0ec71d65
5
5
  SHA512:
6
- metadata.gz: afc3ec8215703100fdfe3d9298b8fe11a3971a8e8fa7199621e3c53fb6ab2dbada13a86005ec4c87d70d6d85398bfdd35346f3736b61a3f430abcba151272317
7
- data.tar.gz: 05bca2e00b4a2ef8a05fd832a44ffd510761bde4f17896f24e6543b10dd27aa15488998c2e7132c665385dd33e95a69ceafc81c3452aceb2793ddc5ab660b3fc
6
+ metadata.gz: 3320dcc5bfc8c2f17b5a46f9a3e1efd5e803983128bad0d28ca50666180546f7b7f1e79922208f362fd22797f61b6eb13608eb73885def8a52adc0d3843e7fbb
7
+ data.tar.gz: e8c767e6a7ad45cca0216b53aca9e0bc328ab4e69a2ca01c9317c8ef78aed7c98c8bdcb3a9bee2f8329264baf996b947e24c577aa4f2fc77c292c87811cd82b8
@@ -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,11 @@ 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 }
63
68
  ].freeze
64
69
 
65
70
  # 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.2
4
+ version: 0.12.3
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-19 00:00:00.000000000 Z
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.