@helios-lang/compiler-utils
Advanced tools
{ | ||
"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
155340
-0.39%97
-1.02%4690
-0.36%