Adding a MatchFragment rule

Also reducing the amount of object cloning that is being done
This commit is contained in:
Jeff Avallone
2014-12-02 21:09:20 -05:00
parent 7d84669536
commit b364198030
4 changed files with 14 additions and 4 deletions
+2
View File
@@ -3,6 +3,7 @@ import parser from './javascript/grammar.peg';
import Root from './javascript/root.js';
import Regexp from './javascript/regexp.js';
import Match from './javascript/match.js';
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';
@@ -10,6 +11,7 @@ import Terminal from './javascript/terminal.js';
parser.Parser.Root = Root;
parser.Parser.Regexp = Regexp;
parser.Parser.Match = Match;
parser.Parser.MatchFragment = MatchFragment;
parser.Parser.Subexp = Subexp;
parser.Parser.Charset = Charset;
parser.Parser.Terminal = Terminal;