Permalink
Browse files

Add primtype AST node and rename some fields

  • Loading branch information...
damelang committed Apr 20, 2012
1 parent a3c64f1 commit ed3892e59f57ef4ef8ba186d8d509437a58ef3ff
Showing with 3 additions and 2 deletions.
  1. +3 −2 compilers/js/nile-ast.js
View
@@ -48,6 +48,7 @@ nile.defineASTNode = function(name, fieldnames) {
}
nile.defineASTNode("vardecl", ["name", "type"]);
+nile.defineASTNode("primtype", []);
nile.defineASTNode("tupletype", ["types"]);
nile.defineASTNode("recordtype", ["fields"]);
nile.defineASTNode("processtype", ["intype", "outtype"]);
@@ -59,8 +60,8 @@ nile.defineASTNode("condcase", ["value", "condition"]);
nile.defineASTNode("condexpr", ["cases", "default"]);
nile.defineASTNode("recfieldexpr", ["record", "field"]);
nile.defineASTNode("opexpr", ["op", "args"]);
-nile.defineASTNode("processinst", ["process", "args"]);
-nile.defineASTNode("pipeline", ["process", "downstream"]);
+nile.defineASTNode("processinst", ["processdef", "args"]);
+nile.defineASTNode("pipeline", ["producer", "consumer"]);
nile.defineASTNode("varpat", ["decls"]);
nile.defineASTNode("vardef", ["pat", "value"]);
nile.defineASTNode("instmt", ["values"]);

0 comments on commit ed3892e

Please sign in to comment.