summaryrefslogtreecommitdiff
path: root/javascripts/NfaState.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascripts/NfaState.js')
-rw-r--r--javascripts/NfaState.js3
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;
};
+