Skip to content

Commit

Permalink
handle comments
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashk committed Apr 3, 2013
1 parent 2e6df2a commit fe93e6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/scala/org/moe/parser/MoeLiterals.scala
Expand Up @@ -7,6 +7,9 @@ import org.moe.ast._

trait MoeLiterals extends JavaTokenParsers {

// treat comments as whitespace
override val whiteSpace = """(#[^\n\r]*[\n\r]|\s)+""".r

// Numeric literals
def zeroNumber: Parser[IntLiteralNode] =
"""[\-\+]?0""".r ^^ { n => IntLiteralNode(0) }
Expand Down

0 comments on commit fe93e6a

Please sign in to comment.