HaskellTiger icon indicating copy to clipboard operation
HaskellTiger copied to clipboard

give better parse error when no `end` present at end of input

Open tdp2110 opened this issue 6 years ago • 1 comments

tdp2110 avatar Aug 17 '19 00:08 tdp2110

for example,

➜  HaskellTiger git:(trunk) ✗ cat examples/no-end.tiger
let
    x := "cat"
in
    println(x)
➜  HaskellTiger git:(trunk) ✗ cabal new-run -v0 tigerc examples/no-end.tiger --
tigerc: Parse Error at token (Lexeme class=ID "x", posn=2:5, string="x")
CallStack (from HasCallStack):
  error, called at /Users/thomaspeters/projects/HaskellTiger/dist-newstyle/build/x86_64-osx/ghc-8.6.3/HaskellTiger-0.1.0.0/x/tigerc/noopt/build/tigerc/tigerc-tmp/Parser.hs:1091:21 in main:Parser

tdp2110 avatar Apr 04 '21 01:04 tdp2110