Comparing version 1.0.12 to 1.0.13
@@ -130,3 +130,3 @@ 'use strict'; | ||
get value() { | ||
return identifier.resType.create(identifier.ref); | ||
return identifier.resType.create(identifier.value || identifier.ref); | ||
} | ||
@@ -133,0 +133,0 @@ }; |
@@ -233,3 +233,5 @@ 'use strict'; | ||
try { | ||
identifier.resType = this.scopes.getConst(identifier.ref).type; | ||
const c = this.scopes.getConst(identifier.ref); | ||
identifier.resType = c.type; | ||
identifier.value = c.value.value; | ||
} catch (err) { | ||
@@ -236,0 +238,0 @@ try { |
@@ -130,3 +130,3 @@ import {EmptyVisitor} from './empty.js' | ||
get value() { | ||
return identifier.resType.create(identifier.ref) | ||
return identifier.resType.create(identifier.value || identifier.ref) | ||
}, | ||
@@ -133,0 +133,0 @@ } |
@@ -235,3 +235,5 @@ import {EmptyVisitor} from './empty.js' | ||
try { | ||
identifier.resType = this.scopes.getConst(identifier.ref).type | ||
const c = this.scopes.getConst(identifier.ref) | ||
identifier.resType = c.type | ||
identifier.value = c.value.value | ||
} | ||
@@ -238,0 +240,0 @@ catch(err) { |
{ | ||
"name": "algo-lang", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Algorithmic language interpreter (in French only for now)", | ||
@@ -5,0 +5,0 @@ "homepage": "https://bitbucket.org/lsystems/algo-lang/overview", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
485544
6319