diff options
Diffstat (limited to 'javascripts/NfaState.js')
-rw-r--r-- | javascripts/NfaState.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/javascripts/NfaState.js b/javascripts/NfaState.js index 2de256d..4291295 100644 --- a/javascripts/NfaState.js +++ b/javascripts/NfaState.js @@ -1,6 +1,6 @@ /* - * State - * + * NfaState + * Represents a state of a NFA (following Thompson's algorithm). */ function NfaState(symbol) { if(!symbol) { @@ -13,6 +13,7 @@ function NfaState(symbol) { this.id = NEXTSTATE++; }; +// Accessor functions. NfaState.prototype.mark = function(bool) { this.marked = bool; }; NfaState.prototype.getFollowUp = function(index) { return this.followUps[index]; }; NfaState.prototype.setFollowUp = function(index, state) { |