How to use the antlr4/index.tree function in antlr4

To help you get started, we’ve selected a few antlr4 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ballerina-attic / composer / modules / web / js / ballerina / parser / antlr-gen / BallerinaVisitor.js View on Github external
// Generated from Ballerina.g4 by ANTLR 4.5.3
// jshint ignore: start
var antlr4 = require('antlr4/index');

// This class defines a complete generic visitor for a parse tree produced by BallerinaParser.

class BallerinaVisitor extends antlr4.tree.ParseTreeVisitor {
    constructor() {
        super();
        return this;
    }

    // Visit a parse tree produced by BallerinaParser#compilationUnit.
    visitCompilationUnit(ctx) {
    }

    // Visit a parse tree produced by BallerinaParser#packageDeclaration.
    visitPackageDeclaration(ctx) {
    }

    // Visit a parse tree produced by BallerinaParser#importDeclaration.
    visitImportDeclaration(ctx) {
    }
github ballerina-attic / composer / modules / web / js / ballerina / parser / antlr-gen / BallerinaListener.js View on Github external
// Generated from Ballerina.g4 by ANTLR 4.5.3
// jshint ignore: start
var antlr4 = require('antlr4/index');

// This class defines a complete listener for a parse tree produced by BallerinaParser.
class BallerinaListener extends antlr4.tree.ParseTreeListener {
    constructor() {
        super();
        return this;
    }

    // Enter a parse tree produced by BallerinaParser#compilationUnit.
    enterCompilationUnit(ctx) {
    }

    // Exit a parse tree produced by BallerinaParser#compilationUnit.
    exitCompilationUnit(ctx) {
    }

    // Enter a parse tree produced by BallerinaParser#packageDeclaration.
    enterPackageDeclaration(ctx) {
    }
github droplet-editor / droplet / antlr / JavaListener.js View on Github external
// Generated from Java.g4 by ANTLR 4.5
// jshint ignore: start
var antlr4 = require('antlr4/index');

// This class defines a complete listener for a parse tree produced by JavaParser.
function JavaListener() {
	antlr4.tree.ParseTreeListener.call(this);
	return this;
}

JavaListener.prototype = Object.create(antlr4.tree.ParseTreeListener.prototype);
JavaListener.prototype.constructor = JavaListener;

// Enter a parse tree produced by JavaParser#compilationUnit.
JavaListener.prototype.enterCompilationUnit = function(ctx) {
};

// Exit a parse tree produced by JavaParser#compilationUnit.
JavaListener.prototype.exitCompilationUnit = function(ctx) {
};


// Enter a parse tree produced by JavaParser#packageDeclaration.
JavaListener.prototype.enterPackageDeclaration = function(ctx) {
};

// Exit a parse tree produced by JavaParser#packageDeclaration.
github mongodb-js / bson-transpilers / lib / antlr / Python3Listener.js View on Github external
// Generated from grammars/Python3.g4 by ANTLR 4.7.1
// jshint ignore: start
var antlr4 = require('antlr4/index');

// This class defines a complete listener for a parse tree produced by Python3Parser.
function Python3Listener() {
	antlr4.tree.ParseTreeListener.call(this);
	return this;
}

Python3Listener.prototype = Object.create(antlr4.tree.ParseTreeListener.prototype);
Python3Listener.prototype.constructor = Python3Listener;

// Enter a parse tree produced by Python3Parser#single_input.
Python3Listener.prototype.enterSingle_input = function(ctx) {
};

// Exit a parse tree produced by Python3Parser#single_input.
Python3Listener.prototype.exitSingle_input = function(ctx) {
};


// Enter a parse tree produced by Python3Parser#file_input.
Python3Listener.prototype.enterFile_input = function(ctx) {
};

// Exit a parse tree produced by Python3Parser#file_input.
github cancerberoSgx / univac / univac / src / grammar / sexpression / sexpressionListener.js View on Github external
// @ts-nocheck
// Generated from sexpression.g4 by ANTLR 4.7.2
// jshint ignore: start
var antlr4 = require('antlr4/index');

// This class defines a complete listener for a parse tree produced by sexpressionParser.
function sexpressionListener() {
	antlr4.tree.ParseTreeListener.call(this);
	return this;
}

sexpressionListener.prototype = Object.create(antlr4.tree.ParseTreeListener.prototype);
sexpressionListener.prototype.constructor = sexpressionListener;

// Enter a parse tree produced by sexpressionParser#sexpr.
sexpressionListener.prototype.enterSexpr = function(ctx) {
};

// Exit a parse tree produced by sexpressionParser#sexpr.
sexpressionListener.prototype.exitSexpr = function(ctx) {
};


// Enter a parse tree produced by sexpressionParser#item.
sexpressionListener.prototype.enterItem = function(ctx) {
};

// Exit a parse tree produced by sexpressionParser#item.
github maiermic / antlr4-ace-ext / parser / VariableDeclaration / VariableDeclarationListener.js View on Github external
function VariableDeclarationListener() {
	antlr4.tree.ParseTreeListener.call(this);
	return this;
}
github microsoft / botbuilder-tools / packages / Ludown / lib / generated / LUFileParserListener.js View on Github external
function LUFileParserListener() {
	antlr4.tree.ParseTreeListener.call(this);
	return this;
}
github stencila / mini / parser / ExprListener.js View on Github external
function ExprListener() {
	antlr4.tree.ParseTreeListener.call(this);
	return this;
}
github cancerberoSgx / univac / univac / src / grammar / lua / LuaListener.js View on Github external
function LuaListener() {
	antlr4.tree.ParseTreeListener.call(this);
	return this;
}
github solidity-ide / antlr-parser / parser / SolidityVisitor.js View on Github external
function SolidityVisitor() {
	antlr4.tree.ParseTreeVisitor.call(this);
	return this;
}