import { ASTNodeFile } from '../ast/node/file'; import { ExceptionSyntax } from '../exception/syntax'; import { Parser } from './class'; /** * ParserDecoder constructor. */ export declare class ParserDecoder extends Parser { /** * Syntax errors since the last reset. */ syntaxErrors: ExceptionSyntax[]; constructor(); /** * Reset any stateful properties. */ reset(): void; /** * Parse and decode ASM to AST. * * @param code Assembly code. * @param name Optional source file name used in the AST. * @returns The AST instance and any errors. */ decode(code: string, name?: string): ASTNodeFile; }