From 7389294e858981c8de13de22f78623349f713e45 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 17 Aug 2010 16:25:40 +0200 Subject: minor nmodifications, webkit compatibility --- javascripts/Nfa2Dfa.js | 2 +- javascripts/lib/jquery-ui.js | 0 javascripts/ui.js | 2 +- regexvis.html | 10 +++++++++- 4 files changed, 11 insertions(+), 3 deletions(-) mode change 100755 => 100644 javascripts/lib/jquery-ui.js diff --git a/javascripts/Nfa2Dfa.js b/javascripts/Nfa2Dfa.js index a29683e..a8132fc 100644 --- a/javascripts/Nfa2Dfa.js +++ b/javascripts/Nfa2Dfa.js @@ -32,7 +32,7 @@ Nfa2Dfa.prototype.getStartState = function() { return this.startState; }; Nfa2Dfa.prototype.getFinalState = function() { return this.finalState; }; // Do conversion. -Nfa2Dfa.prototype.do = function() { +Nfa2Dfa.prototype.convert = function() { var dfaStates = new Stack(); var q = new Stack(); q.push(this.getStartState()); diff --git a/javascripts/lib/jquery-ui.js b/javascripts/lib/jquery-ui.js old mode 100755 new mode 100644 diff --git a/javascripts/ui.js b/javascripts/ui.js index 31a3cfa..d84bf1a 100644 --- a/javascripts/ui.js +++ b/javascripts/ui.js @@ -122,7 +122,7 @@ function uiParse() { $('#regex').addClass('success'); enable('#word'); var dfa = new Nfa2Dfa(nfa); - var ttable = dfa.do(); + var ttable = dfa.convert(); disable('#regex'); disable('#parseButton'); if(!graphit) return; diff --git a/regexvis.html b/regexvis.html index 22c0a95..e2f6ed7 100644 --- a/regexvis.html +++ b/regexvis.html @@ -39,7 +39,7 @@
- Reload + Reload Description This is a little tool to visualize regular expressions @@ -61,6 +61,14 @@ The user interface should be self explanatory and fail safe but you can obtain help for each step by hovering over The corresponding ? symbol. If something goes wrong just click Reload. +

Browser compatibility: +

    +
  • Firefox (3): full functionality
  • +
  • Opera (10): full functionality
  • +
  • WebKit (Safari/Chrome): backspace in graphical simulation does not work
  • +
  • Internet Explorer: unknown, probably none
  • +
+

Click Description again to hide this text.

-- cgit v1.2.3