Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abstract class A {
- def parseCharRef(ch: () => Char, nextch: () => Unit, reportSyntaxError: String => Unit): String = {
- while (ch() != ';') {
- ch() match {
- case 'a' | 'b' =>
- reportSyntaxError("plop")
- case _ =>
- reportSyntaxError("plip")
- }
- nextch()
- }
- "plop"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement