tex2typst 0.2.12 → 0.2.15

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.
package/dist/parser.d.ts DELETED
@@ -1,28 +0,0 @@
1
- import { TexNode, TokenType } from "./types";
2
- export declare class Token {
3
- type: TokenType;
4
- value: string;
5
- constructor(type: TokenType, value: string);
6
- eq(token: Token): boolean;
7
- }
8
- export declare function tokenize(latex: string): Token[];
9
- export declare class LatexParserError extends Error {
10
- constructor(message: string);
11
- }
12
- type ParseResult = [TexNode, number];
13
- export declare class LatexParser {
14
- space_sensitive: boolean;
15
- newline_sensitive: boolean;
16
- constructor(space_sensitive?: boolean, newline_sensitive?: boolean);
17
- parse(tokens: Token[]): TexNode;
18
- parseNextExpr(tokens: Token[], start: number): ParseResult;
19
- parseNextExprWithoutSupSub(tokens: Token[], start: number): ParseResult;
20
- parseCommandExpr(tokens: Token[], start: number): ParseResult;
21
- parseLeftRightExpr(tokens: Token[], start: number): ParseResult;
22
- parseBeginEndExpr(tokens: Token[], start: number): ParseResult;
23
- parseAligned(tokens: Token[]): TexNode[][];
24
- }
25
- export declare function parseTex(tex: string, customTexMacros: {
26
- [key: string]: string;
27
- }): TexNode;
28
- export {};