You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
408 B
JavaScript

"use strict";
class Node {
constructor( type, location ) {
this.type = type;
this.location = location;
}
}
exports.Node = Node;
class Grammar extends Node {
// Creates a new AST
constructor( initializer, rules, location ) {
super( "grammar", location );
this.initializer = initializer;
this.rules = rules;
}
}
exports.Grammar = Grammar;