Download the clips-doc.docker.tar Docker image. You will need docker to proceed.
docker load --input clips-doc.docker.tarImage tag will be clips-doc or clips-doc:latest.
- Assuming your working directory is
$workdir. - Create a directory docs.
- Copy a chosen CLIPS file ($clipsfile) to
docs/asin.clp
mkdir /docs
cp $workdir/$clipsfile $workdir/docs/in.clp
docker run -v $workdir/docs:/app/com clips-doc
# optionally
cp $workdir/docs/out.html $workdir/$clipsfile.html- a file
out.htmlwill be created in$workdir/docs/—that's the documentation of the$clipsfile
;;( Określa typ skrzyżowania do którego podjeżdżamy.
;; @name Typ Skrzyżowania
;; @slot kształt kształt skrzyżowania: rondo albo zwykłe skrzyżowanie
;; @see drogaZPierwszeństwem
;;)
(deftemplate typ
(slot kształt
(allowed-values rondo zwykłe)
(default ?NONE))
);;( Sprawdźmy, czy mamy pierwszeństwo przejazdu.
;; @name Pierwszeństwo Przejazdu
;; @see pierwszeństwo
;;)
(defrule drogaZPierwszeństwem
(and
(znaki tak)
(typ (kształt zwykłe))
) =>
(printout t "Czy droga z pierwszeństwem [tak/nie]? ")
(assert (pierwszeństwo (read))))Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.