arc-lang 0.6.6 → 0.6.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.
@@ -215,6 +215,7 @@ function resolveAsync(v) {
215
215
  function makePrelude(env) {
216
216
  const fns = {
217
217
  print: (...args) => { console.log(args.map(toStr).join(" ")); return null; },
218
+ throw: (msg) => { throw new Error(toStr(msg ?? "error")); },
218
219
  arity: (v) => {
219
220
  if (v && typeof v === "object" && v.__fn)
220
221
  return (v.params || []).length;
package/dist/lexer.js CHANGED
@@ -150,7 +150,7 @@ export function lex(source) {
150
150
  str += advance();
151
151
  continue;
152
152
  }
153
- if (peek() === "{") {
153
+ if (peek() === "{" && /[a-zA-Z_]/.test(peek(1))) {
154
154
  hasInterp = true;
155
155
  if (str.length > 0 || parts.length === 0) {
156
156
  parts.push(tok(TokenType.String, str, sl, sc));
package/dist/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const ARC_VERSION = "0.6.6";
1
+ export declare const ARC_VERSION = "0.6.7";
2
2
  export declare const ARC_BUILD_DATE: string;
3
3
  export declare const ARC_PLATFORM: string;
4
4
  /** Print version info */
package/dist/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Arc Version System
2
- export const ARC_VERSION = "0.6.6";
2
+ export const ARC_VERSION = "0.6.7";
3
3
  export const ARC_BUILD_DATE = new Date().toISOString().split("T")[0];
4
4
  export const ARC_PLATFORM = `${process.platform}-${process.arch}`;
5
5
  /** Print version info */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arc-lang",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "Arc ⚡ — A programming language designed by AI agents, for AI agents. 27-63% fewer tokens than JavaScript.",
5
5
  "type": "module",
6
6
  "bin": {