Permalink
Browse files

Checked that symbolic references in the grammar work.

  • Loading branch information...
1 parent bc15c66 commit cd2915bf8c37a0b58d44a2ba35c93964d1d1ce2a @luqui committed Jun 16, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 demo/structural.html
View
@@ -83,7 +83,8 @@
*/
var top_class = SG.grammar('exp', {
- 'exp': SG.seq(SG.token(/hello/), SG.literal('+'), SG.token(/world/))
+ 'exp': SG.seq(SG.token(/hello/), SG.literal('+'), SG.sym('world')),
+ 'world': SG.token(/world/)
});
var top_node = top_class.make();

0 comments on commit cd2915b

Please sign in to comment.