refactored ATNType.js to be a simple object with static definitions
This commit is contained in:
parent
78afe57b7d
commit
44331c067e
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
var Token = require('./../Token').Token;
|
var Token = require('./../Token').Token;
|
||||||
var ATN = require('./ATN');
|
var ATN = require('./ATN');
|
||||||
var ATNType = require('./ATNType').ATNType;
|
var ATNType = require('./ATNType');
|
||||||
var ATNStates = require('./ATNState');
|
var ATNStates = require('./ATNState');
|
||||||
var ATNState = ATNStates.ATNState;
|
var ATNState = ATNStates.ATNState;
|
||||||
var BasicState = ATNStates.BasicState;
|
var BasicState = ATNStates.BasicState;
|
||||||
|
|
|
@ -2,16 +2,12 @@
|
||||||
* Use of this file is governed by the BSD 3-clause license that
|
* Use of this file is governed by the BSD 3-clause license that
|
||||||
* can be found in the LICENSE.txt file in the project root.
|
* can be found in the LICENSE.txt file in the project root.
|
||||||
*/
|
*/
|
||||||
///
|
|
||||||
|
|
||||||
// Represents the type of recognizer an ATN applies to.
|
/**
|
||||||
|
* Represents the type of recognizer an ATN applies to
|
||||||
function ATNType() {
|
*/
|
||||||
|
module.exports = {
|
||||||
}
|
LEXER: 0,
|
||||||
|
PARSER: 1
|
||||||
ATNType.LEXER = 0;
|
};
|
||||||
ATNType.PARSER = 1;
|
|
||||||
|
|
||||||
exports.ATNType = ATNType;
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue