dtr_core 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71e3bee98b2e2a2d771fe881f059b1a7a0546bfcedbb26bf299d6b438881ea22
4
- data.tar.gz: 6ca9e2267461705e4cfec44be4d18100c1bbbc9d557d81f143fe93974eb6b35a
3
+ metadata.gz: 55f12eb18f4ee0879a11da596e7773478c63af67b500b266321b5dea0e197b8e
4
+ data.tar.gz: 2d01a09f79dee8a6024a188305bf697c64c95de1bd515395b5a5a60121546e54
5
5
  SHA512:
6
- metadata.gz: 87a726b517b10ee0abbfe9e30f9f5361b1da910b43fada3f32733640ddc9d58980c5f00d136c27b3e078a9611dae5181289aae082ee5da78dcf0c25766cf9f92
7
- data.tar.gz: 918302834a7156779d967ae6453755eea5d0bb59633f174ed254ec071c025e57dd674ca099805390bf61598952bee67e026dc5108f242ef6f42d1d7d2622c3fa
6
+ metadata.gz: 4c62efa2e3480649ad53ed708a9a7e791d7704e2d9ba8882a0b17af1c4383439de5204af6ed16cd835bcaa8721eb6c4488d086ae3e1da8322f7386c3265dc5d1
7
+ data.tar.gz: 9044b0c00d4b125644efa8404b05bed564c71e379ab3b7e714682a699fef77a5cc80530e258931a09d8315fc8f35205c420a993df175edb5aec355935e9471d3
@@ -58,7 +58,8 @@ module DTRCore
58
58
  {
59
59
  instruction: instruction[/instruction:\s*(?<all>[^\s,]+)/, 1],
60
60
  inputs: parse_function_instruction_input(instruction),
61
- assign: instruction[/\s*assign:\s*(?<all>[^\s\,]+)/, 1]
61
+ assign: instruction[/\s*assign:\s*(?<all>[^\s\,]+)/, 1],
62
+ scope: instruction[/\s*scope:\s*(?<all>[^\s\,]+)/, 1].to_i || 0
62
63
  }
63
64
  end
64
65
 
@@ -49,7 +49,8 @@ module DTRCore
49
49
  { name: 'evaluate', description: 'Evaluate a method. Method name is the first input and arguments follow',
50
50
  category: INSTRUCTION_CATEGORY_METHODS },
51
51
  # object operations
52
- { name: 'field', description: 'Reference an object field.', category: INSTRUCTION_CATEGORY_OBJECTS }
52
+ { name: 'field', description: 'Reference an object field.', category: INSTRUCTION_CATEGORY_OBJECTS },
53
+ { name: 'initialize_udt', description: 'Instantiate UDT object.', category: INSTRUCTION_CATEGORY_OBJECTS }
53
54
  ].freeze
54
55
 
55
56
  # 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.3.0
4
+ version: 0.4.0
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-05-26 00:00:00.000000000 Z
11
+ date: 2024-05-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Core smart contract intermediate language (Digicus Textual Representation)
14
14
  parser.