diff options
Diffstat (limited to 'javascripts/NfaState.js')
-rw-r--r-- | javascripts/NfaState.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/javascripts/NfaState.js b/javascripts/NfaState.js index 4291295..3453466 100644 --- a/javascripts/NfaState.js +++ b/javascripts/NfaState.js @@ -2,6 +2,8 @@ * NfaState * Represents a state of a NFA (following Thompson's algorithm). */ + + function NfaState(symbol) { if(!symbol) { this.symbol = EPSILON; @@ -20,3 +22,4 @@ NfaState.prototype.setFollowUp = function(index, state) { if (! ((index == 0) || (index==1)) ) return; this.followUps[index] = state; }; + |