diff options
Diffstat (limited to 'javascripts/NfaState.js')
-rw-r--r-- | javascripts/NfaState.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/javascripts/NfaState.js b/javascripts/NfaState.js index 6e7a413..2de256d 100644 --- a/javascripts/NfaState.js +++ b/javascripts/NfaState.js @@ -7,15 +7,15 @@ function NfaState(symbol) { this.symbol = EPSILON; } else { this.symbol = symbol; - } + }; this.followUps = []; this.marked = false; this.id = NEXTSTATE++; -} +}; -NfaState.prototype.mark = function(bool) { this.marked = bool } -NfaState.prototype.getFollowUp = function(index) { return this.followUps[index] } +NfaState.prototype.mark = function(bool) { this.marked = bool; }; +NfaState.prototype.getFollowUp = function(index) { return this.followUps[index]; }; NfaState.prototype.setFollowUp = function(index, state) { - if (!((index == 0) || (index==1)) ) return; + if (! ((index == 0) || (index==1)) ) return; this.followUps[index] = state; -} +}; |