UNPKG

@maniascript/parser

Version:
26 lines (25 loc) 712 B
import { type Token } from 'antlr4ng'; declare class SourcePosition { /** Line number 1..n */ line: number; /** column number 0..n */ column: number; constructor(line: number, column: number); } declare class SourceLocation { start: SourcePosition; end: SourcePosition; constructor(start: SourcePosition, end: SourcePosition); } declare class SourceRange { start: number; end: number; constructor(start: number, end: number); } declare class SourceLocationRange { loc: SourceLocation; range: SourceRange; token: SourceRange; constructor(start: Token, stop?: Token | null); } export { SourcePosition, SourceLocation, SourceRange, SourceLocationRange };