noahlang 2.0.4 → 2.0.7

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.
Files changed (2) hide show
  1. package/noah.js +7 -7
  2. package/package.json +2 -2
package/noah.js CHANGED
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
- // NoahLang Interpreter v2.0.1
2
+ // NoahLang Interpreter v2.0.7
3
3
  // Creator: NoahKahenge
4
4
  //
5
- // v2.0.1 — list literals.
5
+ // v2.0.7 — list literals.
6
6
  //
7
7
  // Fixed:
8
8
  // * parsePrimary now handles `[...]` as a list literal. This was
9
- // missing in v2.0.0, so `for x in ["a", "b"]` failed at the `[`.
9
+ // missing in v2.0.7, so `for x in ["a", "b"]` failed at the `[`.
10
10
  // Now `[...]` works anywhere an expression is valid: in `for`,
11
11
  // `let`, function arguments, record fields, nested inside other
12
12
  // lists.
13
13
  //
14
- // Everything from v2.0.0 works identically.
14
+ // Everything from v2.0.7 works identically.
15
15
 
16
16
  'use strict';
17
17
 
@@ -1171,9 +1171,9 @@ function stringify(value) {
1171
1171
  // ---------------------------------------------
1172
1172
  if (require.main === module) {
1173
1173
  const args = process.argv.slice(2);
1174
- if (args.includes('--version') || args.includes('-v')) { console.log('NoahLang 2.0.2'); process.exit(0); }
1174
+ if (args.includes('--version') || args.includes('-v')) { console.log('NoahLang 2.0.7'); process.exit(0); }
1175
1175
  if (args.includes('--help') || args.includes('-h')) {
1176
- console.log('NoahLang 2.0.1');
1176
+ console.log('NoahLang 2.0.7');
1177
1177
  console.log('Usage: noah [--watch] <file.noah>');
1178
1178
  console.log('');
1179
1179
  console.log('Statements:');
@@ -1206,7 +1206,7 @@ if (require.main === module) {
1206
1206
  if (!endOfFlags && arg.startsWith('-')) continue;
1207
1207
  file = arg; break;
1208
1208
  }
1209
- if (!file) { console.log('NoahLang 2.0.1'); console.log('Usage: noah [--watch] <file.noah>'); process.exit(1); }
1209
+ if (!file) { console.log('NoahLang 2.0.7'); console.log('Usage: noah [--watch] <file.noah>'); process.exit(1); }
1210
1210
  if (!fs.existsSync(file)) { console.error(`NoahLang error: file not found: ${file}`); process.exit(1); }
1211
1211
 
1212
1212
  const filePath = path.resolve(file);
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "noahlang",
3
- "version": "2.0.4",
3
+ "version": "2.0.7",
4
4
  "description": "A small, expressive programming language for building web pages, web apps, and CLI tools.",
5
5
  "main": "noah.js",
6
6
  "bin": {
7
- "noah": "./noah.js"
7
+ "noah": "noah.js"
8
8
  },
9
9
  "files": [
10
10
  "noah.js",