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 +4 -4
- data/lib/dtr_core/function.rb +2 -1
- data/lib/dtr_core/supported_attributes.rb +2 -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: 55f12eb18f4ee0879a11da596e7773478c63af67b500b266321b5dea0e197b8e
|
4
|
+
data.tar.gz: 2d01a09f79dee8a6024a188305bf697c64c95de1bd515395b5a5a60121546e54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c62efa2e3480649ad53ed708a9a7e791d7704e2d9ba8882a0b17af1c4383439de5204af6ed16cd835bcaa8721eb6c4488d086ae3e1da8322f7386c3265dc5d1
|
7
|
+
data.tar.gz: 9044b0c00d4b125644efa8404b05bed564c71e379ab3b7e714682a699fef77a5cc80530e258931a09d8315fc8f35205c420a993df175edb5aec355935e9471d3
|
data/lib/dtr_core/function.rb
CHANGED
@@ -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.
|
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-
|
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.
|