Skip to content

Commit

Permalink
All tests passed
Browse files Browse the repository at this point in the history
  • Loading branch information
zagura committed Jan 6, 2017
1 parent 9085714 commit f41989e
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 83 deletions.
6 changes: 6 additions & 0 deletions src/main/scala/AST/AST.scala
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,9 @@ case class ElifInstr(cond: Node, instr: Node) extends Node{
str
}
}
case class MultiargExpr(list: List[Node], op: String) extends Node {
override def toStr = list.map(_.toStr).mkString("",op,"")
}
case class EmptyNode() extends Node {
override def toStr = ""
}
5 changes: 2 additions & 3 deletions src/main/scala/parser.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import scala.util.parsing.combinator._
import scala.util.parsing.input.Positional
import AST._

import scala.collection.generic.SeqFactory
import scala.util.parsing.combinator._


class Parser extends JavaTokenParsers {

Expand Down
Loading

0 comments on commit f41989e

Please sign in to comment.