@sdeverywhere/compile 0.7.13 → 0.7.14

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdeverywhere/compile",
3
- "version": "0.7.13",
3
+ "version": "0.7.14",
4
4
  "description": "The core Vensim to C compiler for the SDEverywhere tool suite.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -43,7 +43,7 @@ export function expandVarNames(canonical) {
43
43
  * @returns {string[]} An array of expanded names for the given variable.
44
44
  */
45
45
  function namesForVar(v) {
46
- if (process.env.SDE_NONPUBLIC_USE_NEW_PARSE !== '1') {
46
+ if (process.env.SDE_NONPUBLIC_USE_NEW_PARSE === '0') {
47
47
  // TODO: When the old parsing code is active, use the old ModelLHSReader. This code path
48
48
  // will be removed when the old parsing code is removed.
49
49
  let modelLHSReader = new ModelLHSReader()
@@ -800,7 +800,7 @@ function vensimName(cVarName) {
800
800
  function cName(vensimVarName) {
801
801
  // Convert a Vensim variable name to a C name.
802
802
  // This function requires model analysis to be completed first when the variable has subscripts.
803
- if (process.env.SDE_NONPUBLIC_USE_NEW_PARSE !== '1') {
803
+ if (process.env.SDE_NONPUBLIC_USE_NEW_PARSE === '0') {
804
804
  // TODO: For now we use the legacy VarNameReader when the old parser is active; this
805
805
  // code will be removed once the old parser is removed
806
806
  return new VarNameReader().read(vensimVarName)
@@ -131,7 +131,7 @@ export function printNames(namesPathname, operation) {
131
131
  * @return {*} A parsed tree representation of the model.
132
132
  */
133
133
  export function parseModel(input, modelDir, sort = false) {
134
- if (process.env.SDE_NONPUBLIC_USE_NEW_PARSE !== '1') {
134
+ if (process.env.SDE_NONPUBLIC_USE_NEW_PARSE === '0') {
135
135
  // Use the legacy parser
136
136
  return {
137
137
  kind: 'vensim-legacy',