refactored ATNType.js to be a simple object with static definitions

This commit is contained in:
Camilo Roca 2020-03-06 19:14:24 +01:00
parent 78afe57b7d
commit 44331c067e
2 changed files with 8 additions and 12 deletions

View File

@ -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;

View File

@ -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
};