@spellu/core
Advanced tools
Comparing version 0.3.0 to 0.4.0
{ | ||
"name": "@spellu/core", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"license": "MIT", | ||
@@ -22,4 +22,3 @@ "description": "Spellu is a parser combinator engine.", | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"gitHead": "3ff9fc5a33a998ecfb019a78f5082350feaa525c" | ||
} | ||
} |
@@ -397,2 +397,22 @@ declare namespace spellu { | ||
declare namespace spellu { | ||
type TextPrinterOptions = { | ||
indent?: number | 'tab'; | ||
lineBreak?: string; | ||
}; | ||
class TextPrinter { | ||
_indent: number | 'tab'; | ||
_lineBreak: string; | ||
lines: string[]; | ||
indentLevel: number; | ||
line: string; | ||
constructor(options?: TextPrinterOptions); | ||
print(...texts: string[]): this; | ||
printQuote(quote: string | string, text: string): this; | ||
indent(level: number): this; | ||
newLine(indentLevel?: number): this; | ||
indentString(): string; | ||
toString(): string; | ||
} | ||
} | ||
declare namespace spellu { | ||
interface SourceOption { | ||
@@ -399,0 +419,0 @@ normalize?: boolean; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85089
1570