oracle-plsql-parser
Advanced tools
Comparing version
@@ -1,5 +0,5 @@ | ||
declare function parsePlSql(code: string): { | ||
errors: import("chevrotain").IRecognitionException[]; | ||
cst: import("chevrotain").CstNode; | ||
}; | ||
import { CstNode } from 'chevrotain'; | ||
import { GlobalObjects } from './src/components/cstVisitor/types'; | ||
declare function parsePlSql(code: string): import("./src/components/mainParser/types").ParseResult; | ||
export declare function getInterpretation(cst: CstNode): GlobalObjects; | ||
export default parsePlSql; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getInterpretation = void 0; | ||
const cstVisitor_1 = require("./src/components/cstVisitor"); | ||
const recoveryParser_1 = require("./src/components/mainParser/recoveryParser"); | ||
@@ -16,3 +18,7 @@ function parsePlSql(code) { | ||
} | ||
function getInterpretation(cst) { | ||
return cstVisitor_1.default.visit(cst); | ||
} | ||
exports.getInterpretation = getInterpretation; | ||
exports.default = parsePlSql; | ||
//# sourceMappingURL=index.js.map |
@@ -5,5 +5,3 @@ import { GlobalObjects, PackageDef, VariableDef } from './types'; | ||
constructor(); | ||
global(ctx: any): { | ||
globalObjects: GlobalObjects; | ||
}; | ||
global(ctx: any): GlobalObjects; | ||
createPackage(ctx: any): PackageDef; | ||
@@ -10,0 +8,0 @@ variableDeclaration(ctx: any): VariableDef | null; |
@@ -26,3 +26,3 @@ "use strict"; | ||
} | ||
return { globalObjects }; | ||
return globalObjects; | ||
} | ||
@@ -29,0 +29,0 @@ createPackage(ctx) { |
@@ -1,8 +0,5 @@ | ||
import { CstNode } from 'chevrotain'; | ||
import PlSqlParser from './rules'; | ||
import { ParseResult } from './types'; | ||
export declare const parserInstance: PlSqlParser; | ||
declare function parse(input: string, log?: boolean): { | ||
errors: import("chevrotain").IRecognitionException[]; | ||
cst: CstNode; | ||
}; | ||
declare function parse(input: string, log?: boolean): ParseResult; | ||
export default parse; |
@@ -1,6 +0,3 @@ | ||
import { CstNode } from 'chevrotain'; | ||
declare function parse(input: string, log?: boolean): { | ||
errors: import("chevrotain").IRecognitionException[]; | ||
cst: CstNode; | ||
}; | ||
import { ParseResult } from './types'; | ||
declare function parse(input: string, log?: boolean): ParseResult; | ||
export default parse; |
{ | ||
"name": "oracle-plsql-parser", | ||
"description": "Parser for Oracle PL/SQL", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"repository": "https://github.com/phartenfeller/plsql-parser.git", | ||
@@ -6,0 +6,0 @@ "website": "https://github.com/phartenfeller/plsql-parser", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
298267
0.23%123
2.5%4610
0.11%