我现在有什么:
_oasis 文件:
OASISFormat: 0.4
Name: Count Lines
Version: 0.0.1
Synopsis: Counts the number of lines in the project
Authors: Bogdan Nechyporenko
License: LGPL-2.1 with OCaml linking exception
Executable "count-lines"
Path: src
BuildTools: ocamlbuild
BuildDepends: str
MainIs: main.ml
src/main.ml:
open Str ;;
let endswith s1 s2 =
let re = Str.regexp (Str.quote s2 ^ "$")
in
try ignore (Str.search_forward re s1 0); true
with Not_found -> false
我正在运行命令来构建它:
ocaml setup.ml -build