📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

@helios-lang/compiler-utils

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@helios-lang/compiler-utils - npm Package Compare versions

Comparing version

to
0.5.6

{
"name": "@helios-lang/compiler-utils",
"version": "0.5.5",
"version": "0.5.6",
"description": "Helios language compiler library",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -324,4 +324,12 @@ export {

* @prop {Token[]} tokens
* Tokens optionally excluding newlines
*
* @prop {Token[]} originalTokens
* Tokens including newlines (can be used for automatic semicolon injection)
*
* @prop {Token[]} rest
* Unread tokens optionally excludng newlines
*
* @prop {ErrorCollector} errors
* @prop {Token[]} rest
*
* @prop {<Matchers extends TokenMatcher[]>(...matchers: [...Matchers]) => TokenReader} assert

@@ -328,0 +336,0 @@ * @prop {() => void} end

@@ -250,5 +250,15 @@ export { translateImportPaths } from "./formatters/index.js";

export type TokenReader = {
/**
* Tokens optionally excluding newlines
*/
tokens: Token[];
/**
* Tokens including newlines (can be used for automatic semicolon injection)
*/
originalTokens: Token[];
/**
* Unread tokens optionally excludng newlines
*/
rest: Token[];
errors: ErrorCollector;
rest: Token[];
assert: <Matchers extends TokenMatcher[]>(...matchers: [...Matchers]) => TokenReader;

@@ -268,3 +278,3 @@ end: () => void;

export { isCompilerError, makeErrorCollector, makeReferenceError, makeSyntaxError, makeTypeError } from "./errors/index.js";
export { anySymbol, anyWord, boollit, byteslit, group, intlit, isDummySite, makeBoolLiteral, makeByteArrayLiteral, makeComment, makeDummySite, makeGroup, makeIntLiteral, makeRealLiteral, makeSource, makeStringLiteral, makeSymbolToken, makeTokenizer, makeTokenReader, makeTokenSite, makeWord, mergeSites, oneOf, reallit, strlit, symbol, wildcard, word, REAL_PRECISION } from "./tokens/index.js";
export { anySymbol, anyWord, boollit, byteslit, group, intlit, isDummySite, makeBoolLiteral, makeByteArrayLiteral, makeComment, makeDummySite, makeGroup, makeIntLiteral, makeNL, makeRealLiteral, makeSource, makeStringLiteral, makeSymbolToken, makeTokenizer, makeTokenReader, makeTokenSite, makeWord, mergeSites, oneOf, reallit, strlit, symbol, wildcard, word, REAL_PRECISION } from "./tokens/index.js";
//# sourceMappingURL=index.d.ts.map

Sorry, the diff of this file is not supported yet