-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from dmvjs/ke/esm-and-jest
using esm and jest and JS classes
- Loading branch information
Showing
12 changed files
with
56,814 additions
and
12,614 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,177 +1,141 @@ | ||
// Generated from QASM.g4 by ANTLR 4.7.1 | ||
// jshint ignore: start | ||
var antlr4 = require('antlr4/index'); | ||
import {ParseTreeListener} from "antlr4"; | ||
|
||
// This class defines a complete listener for a parse tree produced by QASMParser. | ||
function QASMListener() { | ||
antlr4.tree.ParseTreeListener.call(this); | ||
return this; | ||
} | ||
|
||
QASMListener.prototype = Object.create(antlr4.tree.ParseTreeListener.prototype); | ||
QASMListener.prototype.constructor = QASMListener; | ||
export class QASMListener extends ParseTreeListener { | ||
constructor() { | ||
super(); | ||
} | ||
|
||
// Enter a parse tree produced by QASMParser#mainprog. | ||
QASMListener.prototype.enterMainprog = function(ctx) { | ||
}; | ||
enterMainprog = function(ctx) { | ||
}; | ||
|
||
// Exit a parse tree produced by QASMParser#mainprog. | ||
QASMListener.prototype.exitMainprog = function(ctx) { | ||
}; | ||
exitMainprog = function(ctx) { | ||
}; | ||
|
||
|
||
// Enter a parse tree produced by QASMParser#statement. | ||
QASMListener.prototype.enterStatement = function(ctx) { | ||
}; | ||
enterStatement = function(ctx) { | ||
}; | ||
|
||
// Exit a parse tree produced by QASMParser#statement. | ||
QASMListener.prototype.exitStatement = function(ctx) { | ||
}; | ||
exitStatement = function(ctx) { | ||
}; | ||
|
||
|
||
// Enter a parse tree produced by QASMParser#version. | ||
QASMListener.prototype.enterVersion = function(ctx) { | ||
}; | ||
enterVersion = function(ctx) { | ||
}; | ||
|
||
// Exit a parse tree produced by QASMParser#version. | ||
QASMListener.prototype.exitVersion = function(ctx) { | ||
}; | ||
exitVersion = function(ctx) { | ||
}; | ||
|
||
|
||
// Enter a parse tree produced by QASMParser#include. | ||
QASMListener.prototype.enterInclude = function(ctx) { | ||
}; | ||
enterInclude = function(ctx) { | ||
}; | ||
|
||
// Exit a parse tree produced by QASMParser#include. | ||
QASMListener.prototype.exitInclude = function(ctx) { | ||
}; | ||
exitInclude = function(ctx) { | ||
}; | ||
|
||
|
||
// Enter a parse tree produced by QASMParser#filename. | ||
QASMListener.prototype.enterFilename = function(ctx) { | ||
}; | ||
enterFilename = function(ctx) { | ||
}; | ||
|
||
// Exit a parse tree produced by QASMParser#filename. | ||
QASMListener.prototype.exitFilename = function(ctx) { | ||
}; | ||
exitFilename = function(ctx) { | ||
}; | ||
|
||
|
||
// Enter a parse tree produced by QASMParser#decl. | ||
QASMListener.prototype.enterDecl = function(ctx) { | ||
}; | ||
enterDecl = function(ctx) { | ||
}; | ||
|
||
// Exit a parse tree produced by QASMParser#decl. | ||
QASMListener.prototype.exitDecl = function(ctx) { | ||
}; | ||
exitDecl = function(ctx) {}; | ||
|
||
|
||
// Enter a parse tree produced by QASMParser#gatedecl. | ||
QASMListener.prototype.enterGatedecl = function(ctx) { | ||
}; | ||
enterGatedecl = function(ctx) {}; | ||
|
||
// Exit a parse tree produced by QASMParser#gatedecl. | ||
QASMListener.prototype.exitGatedecl = function(ctx) { | ||
}; | ||
|
||
exitGatedecl = function(ctx) {}; | ||
|
||
// Enter a parse tree produced by QASMParser#goplist. | ||
QASMListener.prototype.enterGoplist = function(ctx) { | ||
}; | ||
enterGoplist = function(ctx) {}; | ||
|
||
// Exit a parse tree produced by QASMParser#goplist. | ||
QASMListener.prototype.exitGoplist = function(ctx) { | ||
}; | ||
exitGoplist = function(ctx) {}; | ||
|
||
|
||
// Enter a parse tree produced by QASMParser#qop. | ||
QASMListener.prototype.enterQop = function(ctx) { | ||
}; | ||
enterQop = function(ctx) {}; | ||
|
||
// Exit a parse tree produced by QASMParser#qop. | ||
QASMListener.prototype.exitQop = function(ctx) { | ||
}; | ||
exitQop = function(ctx) {}; | ||
|
||
|
||
// Enter a parse tree produced by QASMParser#uop. | ||
QASMListener.prototype.enterUop = function(ctx) { | ||
}; | ||
enterUop = function(ctx) {}; | ||
|
||
// Exit a parse tree produced by QASMParser#uop. | ||
QASMListener.prototype.exitUop = function(ctx) { | ||
}; | ||
exitUop = function(ctx) {}; | ||
|
||
|
||
// Enter a parse tree produced by QASMParser#anylist. | ||
QASMListener.prototype.enterAnylist = function(ctx) { | ||
}; | ||
enterAnylist = function(ctx) {}; | ||
|
||
// Exit a parse tree produced by QASMParser#anylist. | ||
QASMListener.prototype.exitAnylist = function(ctx) { | ||
}; | ||
exitAnylist = function(ctx) {}; | ||
|
||
|
||
// Enter a parse tree produced by QASMParser#idlist. | ||
QASMListener.prototype.enterIdlist = function(ctx) { | ||
}; | ||
enterIdlist = function(ctx) {}; | ||
|
||
// Exit a parse tree produced by QASMParser#idlist. | ||
QASMListener.prototype.exitIdlist = function(ctx) { | ||
}; | ||
exitIdlist = function(ctx) {}; | ||
|
||
|
||
// Enter a parse tree produced by QASMParser#mixedlist. | ||
QASMListener.prototype.enterMixedlist = function(ctx) { | ||
}; | ||
enterMixedlist = function(ctx) {}; | ||
|
||
// Exit a parse tree produced by QASMParser#mixedlist. | ||
QASMListener.prototype.exitMixedlist = function(ctx) { | ||
}; | ||
exitMixedlist = function(ctx) {}; | ||
|
||
|
||
// Enter a parse tree produced by QASMParser#argument. | ||
QASMListener.prototype.enterArgument = function(ctx) { | ||
}; | ||
enterArgument = function(ctx) {}; | ||
|
||
// Exit a parse tree produced by QASMParser#argument. | ||
QASMListener.prototype.exitArgument = function(ctx) { | ||
}; | ||
exitArgument = function(ctx) {}; | ||
|
||
|
||
// Enter a parse tree produced by QASMParser#explist. | ||
QASMListener.prototype.enterExplist = function(ctx) { | ||
}; | ||
enterExplist = function(ctx) {}; | ||
|
||
// Exit a parse tree produced by QASMParser#explist. | ||
QASMListener.prototype.exitExplist = function(ctx) { | ||
}; | ||
|
||
exitExplist = function(ctx) {}; | ||
|
||
// Enter a parse tree produced by QASMParser#exp. | ||
QASMListener.prototype.enterExp = function(ctx) { | ||
}; | ||
enterExp = function(ctx) {}; | ||
|
||
// Exit a parse tree produced by QASMParser#exp. | ||
QASMListener.prototype.exitExp = function(ctx) { | ||
}; | ||
|
||
exitExp = function(ctx) {}; | ||
|
||
// Enter a parse tree produced by QASMParser#atom. | ||
QASMListener.prototype.enterAtom = function(ctx) { | ||
}; | ||
enterAtom = function(ctx) {}; | ||
|
||
// Exit a parse tree produced by QASMParser#atom. | ||
QASMListener.prototype.exitAtom = function(ctx) { | ||
}; | ||
|
||
exitAtom = function(ctx) {}; | ||
|
||
// Enter a parse tree produced by QASMParser#unaryop. | ||
QASMListener.prototype.enterUnaryop = function(ctx) { | ||
}; | ||
enterUnaryop = function(ctx) {}; | ||
|
||
// Exit a parse tree produced by QASMParser#unaryop. | ||
QASMListener.prototype.exitUnaryop = function(ctx) { | ||
}; | ||
|
||
|
||
|
||
exports.QASMListener = QASMListener; | ||
exitUnaryop = function(ctx) {}; | ||
} |
Oops, something went wrong.