Commit 2aa1652a authored by Christophe Rhodes's avatar Christophe Rhodes

Add a half-baked half-finished ISO Prolog syntax.

Known internal lacunae:
  * does not handle quotations correctly:
    ** fails to recognize '' as an escaped quote character (and similarly
       for other quote characters);
    ** fails to canonize quoted atoms; will fail to identify the operator
       ; from the quoted atom ';';
    ** does not contain any logic for backslash-escaped data.
  * does not implement parsing floating point numbers.
  * comments before directives get italicized.
  * way too long.  Expect some refactoring.

Known suboptimal interactions with the syntax framework:
  * parses the entire buffer at every keystroke; incremental parsing caused
    a problem at some point and has not (yet) been restored.
  * displays the entire buffer at every keystroke.
  * the incremental lexer gets confused in the presence of comments.
    (see forthcoming mail to climacs-devel)
parent 28acfc6f
......@@ -63,6 +63,7 @@
"Persistent/persistent-undo"
"pane"
"html-syntax"
"prolog-syntax"
"gui"
;;---- optional ----
"testing/rt"
......
......@@ -147,6 +147,11 @@
(:use :clim-lisp :clim :climacs-buffer :climacs-base
:climacs-syntax :flexichain :climacs-pane))
(defpackage :climacs-prolog-syntax
(:use :clim-lisp :clim :climacs-buffer :climacs-base
:climacs-syntax :flexichain :climacs-pane)
(:shadow "ATOM" "CLOSE" "EXP" "INTEGER" "OPEN" "VARIABLE"))
(defpackage :climacs-gui
(:use :clim-lisp :clim :climacs-buffer :climacs-base :climacs-abbrev :climacs-syntax
:climacs-kill-ring :climacs-pane :clim-extensions :undo))
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment