Beginning to add some functionality to the parser

This commit is contained in:
Jeff Avallone
2014-11-26 18:24:40 -05:00
parent c6f2271867
commit facb99e8bc
6 changed files with 70 additions and 7 deletions
+9
View File
@@ -0,0 +1,9 @@
export default {
matches() {
if (this.elements[1].regexp) {
return [this.match].concat(this.elements[1].regexp.matches());
} else {
return [this.match];
}
}
};