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 ATN = require('./ATN');
|
||||
var ATNType = require('./ATNType').ATNType;
|
||||
var ATNType = require('./ATNType');
|
||||
var ATNStates = require('./ATNState');
|
||||
var ATNState = ATNStates.ATNState;
|
||||
var BasicState = ATNStates.BasicState;
|
||||
|
|
|
@ -2,16 +2,12 @@
|
|||
* 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.
|
||||
*/
|
||||
///
|
||||
|
||||
// Represents the type of recognizer an ATN applies to.
|
||||
|
||||
function ATNType() {
|
||||
|
||||
}
|
||||
|
||||
ATNType.LEXER = 0;
|
||||
ATNType.PARSER = 1;
|
||||
|
||||
exports.ATNType = ATNType;
|
||||
/**
|
||||
* Represents the type of recognizer an ATN applies to
|
||||
*/
|
||||
module.exports = {
|
||||
LEXER: 0,
|
||||
PARSER: 1
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue