[go: up one dir, main page]

File: missing_enddef.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 (12 lines) | stat: -rw-r--r-- 250 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
(* A common problem: *)

#def TWICE(e)
  e + e
(* missing #enddef 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 #def as the
   source of the problem. *)