Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Temporary tests.

  • Loading branch information...
commit 0134e581cb6b235b7d1216609c86d59c6778f487 1 parent 47eb767
Maksym Trushyn authored

Showing 1 changed file with 9 additions and 8 deletions. Show diff stats Hide diff stats

  1. +9 8 src/Boo.TinyAst.Tests/TinyAstTests.boo
17 src/Boo.TinyAst.Tests/TinyAstTests.boo
@@ -117,26 +117,27 @@ a0 as (int,1)
117 117
118 118 [Test]
119 119 def TinyAstTest1():
120   - code = """
121   -b = [(x, y) for x in range(4) if x % 2 for y in range(5) if y % 2]
122   -"""
  120 + code = """c = {
  121 + a : b,
  122 + "spam" : "e" + "g" + "g" + "s"
  123 + }"""
123 124
124   -// booParser = BooParser()
125   -// m = booParser.module(code)
  125 + booParser = BooParser()
  126 + m = booParser.module(code)
126 127 // bp = BooParser()
127 128 // match bp.block(code):
128 129 // case SuccessfulMatch(Value: s)
129 130 // print s
130 131
131 132 parser = TinyAstParser()
132   - match parser.block(code):
  133 + match parser.form(code):
133 134 case SuccessfulMatch(Value: o, Input /* = Boo.TinyAst.Block()*/)
134 135
135 136 cp = Boo.Lang.Compiler.CompilerParameters()
136 137 cp.References.Add(typeof(BooParser).Assembly)
137 138 evaluator = TinyAstEvaluator(cp)
138   - b = evaluator.expansion(OMetaInput.For((o as Boo.TinyAst.Block).Forms))
139   -
  139 + //b = evaluator.expansion(OMetaInput.For((o as Boo.TinyAst.Block).Forms))
  140 + b = evaluator.expansion(OMetaInput.Singleton(o))
140 141 print b
141 142
142 143 def normalize(s as string):

0 comments on commit 0134e58

Please sign in to comment.
Something went wrong with that request. Please try again.