UNPKG

antlr4-runtime

Version:

JavaScript runtime for ANTLR4

19 lines (17 loc) 628 B
/* Copyright (c) 2012-2022 The ANTLR Project Contributors. All rights reserved. * Use is of this file is governed by the BSD 3-clause license that * can be found in the LICENSE.txt file in the project root. */ import DecisionState from "./DecisionState.js"; import ATNState from "./ATNState.js"; /** * Decision state for {@code A+} and {@code (A|B)+}. It has two transitions: * one to the loop back to start of the block and one to exit. */ export default class PlusLoopbackState extends DecisionState { constructor() { super(); this.stateType = ATNState.PLUS_LOOP_BACK; return this; } }