Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Make examples/classy_ast.jison functional by adding prependChild definition #158

Merged
merged 1 commit into from

2 participants

@kanaka

The definition of the prependChild function is missing from the classy_ast.jison definition. Add it based on definition in web/jison/examples/classy_ast.json

@kanaka kanaka Add prependChild to examples/classy_ast.jison
The definition of the prependChild function is missing from the classy_ast.jison definition. Add it based on definition in web/jison/examples/classy_ast.json
4fff412
@zaach zaach merged commit aa1faf8 into zaach:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 25, 2013
  1. @kanaka

    Add prependChild to examples/classy_ast.jison

    kanaka authored
    The definition of the prependChild function is missing from the classy_ast.jison definition. Add it based on definition in web/jison/examples/classy_ast.json
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +7 −1 examples/classy_ast.jison
View
8 examples/classy_ast.jison
@@ -1,4 +1,3 @@
-
/* description: ClassyLang grammar with AST-building actions. Very classy. */
/*
To build parser:
@@ -9,6 +8,13 @@
/* author: Zach Carter */
+%{
+ function prependChild(node, child){
+ node.splice(2,0,child);
+ return node;
+ }
+%}
+
%right ASSIGN
%left OR
%nonassoc EQUALITY GREATER
Something went wrong with that request. Please try again.