File: fail_regexp_minus_empty.aug

package info (click to toggle)
augeas 0.2.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,080 kB
  • ctags: 3,084
  • sloc: ansic: 22,252; sh: 10,348; yacc: 435; ruby: 410; lex: 172; makefile: 126
file content (9 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
module Fail_regexp_minus_empty =

  (* This fails since the result of the subtraction is the empty set *)
  (* which we can not represent as a regular expression.             *)
  let re = "a" - /[a-z]/

(* Local Variables: *)
(* mode: caml       *)
(* End:             *)