author | wenzelm |
Mon, 30 Jul 2012 13:44:40 +0200 | |
changeset 48600 | 305ebcd9018a |
parent 48599 | 5e64b7770f35 |
child 48601 | 655b08c2cd89 |
--- a/src/Pure/Isar/parse.scala Mon Jul 30 13:42:45 2012 +0200 +++ b/src/Pure/Isar/parse.scala Mon Jul 30 13:44:40 2012 +0200 @@ -77,7 +77,8 @@ /* wrappers */ def parse[T](p: Parser[T], in: Token.Reader): ParseResult[T] = p(in) - def parse_all[T](p: Parser[T], in: Token.Reader): ParseResult[T] = parse(phrase(p), in) + def parse_all[T](p: Parser[T], in: Token.Reader): ParseResult[T] = + parse(p <~ eof, in) } }