File: missing_endscope.cppo

package info (click to toggle)
cppo 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 588 kB
  • sloc: ml: 2,133; makefile: 54; sh: 11
file content (14 lines) | stat: -rw-r--r-- 269 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(* A common problem: *)

#scope
#def TWICE(e)
  e + e
#enddef
(* missing #endscope here *)

let f x =
  TWICE(x)

(* The error is detected by the parser at the end of the file,
   but we are able to report the location of the #scope as the
   source of the problem. *)