thrift-parser-ts
Version:
A parser of Thrift , by Antlr4 and antlr4ts
19 lines (18 loc) • 622 B
TypeScript
import { CharStream, CommonTokenStream } from 'antlr4ts';
import { ThriftParser, DocumentContext } from './ThriftParser';
import { ThriftLexer } from './ThriftLexer';
export { ThriftParser, ThriftLexer, };
export declare const CommentChannel = 2;
export declare type ParserReult = [
ThriftLexer,
CommonTokenStream,
ThriftParser,
DocumentContext
];
export declare function parse(inputStream: CharStream): ParserReult;
export declare class ThriftData {
tokens: CommonTokenStream;
document: DocumentContext;
constructor(inputStream: CharStream);
static fromString(data: string): ThriftData;
}