Adding code to render loop and skip paths for repetitions

This currently breaks the rendering and will need more work. Also need
to add labels for {a,b} syntax
This commit is contained in:
Jeff Avallone
2014-12-06 12:34:00 -05:00
parent 5fcb0758a3
commit d2b96c7833
8 changed files with 147 additions and 11 deletions
+10
View File
@@ -7,6 +7,11 @@ import MatchFragment from './javascript/match_fragment.js';
import Subexp from './javascript/subexp.js';
import Charset from './javascript/charset.js';
import Terminal from './javascript/terminal.js';
import Repeat from './javascript/repeat.js';
import RepeatAny from './javascript/repeat_any.js';
import RepeatOptional from './javascript/repeat_optional.js';
import RepeatRequired from './javascript/repeat_required.js';
import RepeatSpec from './javascript/repeat_spec.js';
parser.Parser.Root = Root;
parser.Parser.Regexp = Regexp;
@@ -15,5 +20,10 @@ parser.Parser.MatchFragment = MatchFragment;
parser.Parser.Subexp = Subexp;
parser.Parser.Charset = Charset;
parser.Parser.Terminal = Terminal;
parser.Parser.Repeat = Repeat;
parser.Parser.RepeatAny = RepeatAny;
parser.Parser.RepeatOptional = RepeatOptional;
parser.Parser.RepeatRequired = RepeatRequired;
parser.Parser.RepeatSpec = RepeatSpec;
export default parser;