UNPKG

parsergen-starter

Version:

A complete parser generator starter with PEG.js, optional Moo lexer, and VS Code integration

79 lines (74 loc) โ€ข 1.62 kB
// src/index.ts // ============================================ // ๐ŸŒ ParserGen Main API Surface (Public Entry) // ============================================ // ๐Ÿง  Grammar Compilation export { compileGrammar, type CompiledGrammar, } from './grammar/index'; // ๐Ÿ”ค Lexer and Tokenization export { type LexerRule, type LexerState, type Preprocessor, type PreprocessorContext, type LanguageSpec, type ContextRule, type LexerPlugin, type TokenContext, type ErrorRecoveryConfig, type SourceLocation, LexerError, type ProfileReport, type TokenPattern, type PatternRule, type PatternMatch, type LexerConfig, type Token, TokenStream, LanguageDetector, TokenTree, UniversalLexer, LanguageSpecBuilder, LanguageRegistry, TokenAnalyzer, IndentationPlugin, ErrorRecoveryStrategy, LexerProfiler, } from './lexer/index'; // ๐Ÿ“ฅ Parsing and Input Handling export { parseInput, parseWithSemanticAnalysis, parseMultiple, parseStream, parseWithTimeout, validateSyntax, parseWithAdvancedRecovery, createParser, ASTWalker, ASTTransformer, SymbolTable, DiagnosticCollector, LanguageServer, REPL, StreamingParser, ParserUtils, PerformanceParser, ASTNodeFactory, type ParseError, type ParseResult, type SourceMapGenerator } from './parser/index'; // ๐Ÿงพ Utilities and AST Helpers export { formatError, formatLocation, createASTNode, traverseAST, highlightSnippet, type ASTNode, type Location, type ErrorFormatter, } from './utils/index';