/[climacs]/climacs/html-syntax.lisp
ViewVC logotype

Log of /climacs/html-syntax.lisp

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Tag:

Revision 1.37 - (view) (annotate) - [select for diffs]
Mon Nov 13 09:01:52 2006 UTC (7 years, 5 months ago) by thenriksen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.36: +135 -101 lines
Diff to previous 1.36 , to selected 1.6
TTCN3 syntax and HTML syntax should work now, but they have not been
fully tested.

Revision 1.36 - (view) (annotate) - [select for diffs]
Sun Nov 12 16:06:06 2006 UTC (7 years, 5 months ago) by thenriksen
Branch: MAIN
Changes since 1.35: +53 -52 lines
Diff to previous 1.35 , to selected 1.6
Make Climacs use Drei. There are known problems (apart from the docs
now being outdated):

* Some syntaxes have not been updated.
* Group functionality has been disabled.
* It's a large change and Climacs has no test suite. Bugs probably
  still remain.

But it should work nicely most of the time. Otherwise, you'll get a
full refund.

Revision 1.35 - (view) (annotate) - [select for diffs]
Sat Sep 2 21:43:56 2006 UTC (7 years, 7 months ago) by thenriksen
Branch: MAIN
CVS Tags: works-with-0_9_3
Changes since 1.34: +1 -1 lines
Diff to previous 1.34 , to selected 1.6
Removed the Basic syntax and the `cache' slot in the `climacs-pane'
class. Fundamental syntax is now the default. This also required
moving some things around, but there has not been any functionality
changes.

Revision 1.34 - (view) (annotate) - [select for diffs]
Mon Jun 12 19:10:58 2006 UTC (7 years, 10 months ago) by thenriksen
Branch: MAIN
Changes since 1.33: +1 -1 lines
Diff to previous 1.33 , to selected 1.6
Major motion and editing functions and commands refactoring (see the
thread "paredit.lisp, regularization of motion commands, and more" on
climacs-devel for full details).

Breakage not found during testing, but still expected.

Revision 1.33 - (view) (annotate) - [select for diffs]
Sat May 6 19:51:04 2006 UTC (7 years, 11 months ago) by dmurray
Branch: MAIN
Changes since 1.32: +1 -1 lines
Diff to previous 1.32 , to selected 1.6
Changed mark-visibility to region visibility. Turn it on
and off with Visible Region, for now.

Revision 1.32 - (view) (annotate) - [select for diffs]
Mon Aug 15 23:31:22 2005 UTC (8 years, 8 months ago) by dmurray
Branch: MAIN
Changes since 1.31: +2 -10 lines
Diff to previous 1.31 , to selected 1.6
Factored out cursor display from syntaxes to a display-cursor
method on basic-syntax. Also added a display-mark method,
a mark-visible-p slot on climacs-pane, and a command
com-toggle-visible-mark to turn display of the mark on
and off - useful for developing marking commands.

Revision 1.31 - (view) (annotate) - [select for diffs]
Thu May 26 08:31:53 2005 UTC (8 years, 10 months ago) by crhodes
Branch: MAIN
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 , to selected 1.6
OK, no-one complained too much, so I'm going ahead with the syntax
file-type changes discussed in <sqmzqrhbma.fsf@cam.ac.uk>:
DEFINE-SYNTAX's syntax is changed incompatibly.

Revision 1.30 - (view) (annotate) - [select for diffs]
Mon May 9 13:12:47 2005 UTC (8 years, 11 months ago) by rstrandh
Branch: MAIN
Changes since 1.29: +60 -80 lines
Diff to previous 1.29 , to selected 1.6
Prediction is now done at the beginning of advance-parse, which
means the next token is available to the predictor.

Added a :predict-test to the add-rule macro making it possible to
control when prediction is reasonable.

Added :predict-test to a few rules of HTML syntax to speed up the parser.

Revision 1.29 - (view) (annotate) - [select for diffs]
Mon Apr 11 06:27:13 2005 UTC (9 years ago) by rstrandh
Branch: MAIN
Changes since 1.28: +26 -24 lines
Diff to previous 1.28 , to selected 1.6
Modified html lexer to return end-tag-start when it sees `</', and
start-tag-start when it sees `<' followed by something other than
slash.  Slash is no longer a specific lexeme, just a delimiter like
the others.

Revision 1.28 - (view) (annotate) - [select for diffs]
Mon Apr 11 06:12:22 2005 UTC (9 years ago) by rstrandh
Branch: MAIN
Changes since 1.27: +26 -0 lines
Diff to previous 1.27 , to selected 1.6
Defined BR and HR elements and modified some html files accordingly.

Revision 1.27 - (view) (annotate) - [select for diffs]
Mon Apr 11 05:28:51 2005 UTC (9 years ago) by rstrandh
Branch: MAIN
Changes since 1.26: +64 -33 lines
Diff to previous 1.26 , to selected 1.6
Improvements to HTML syntax:

  * defined a macro for creating nonempty lists

  * the UL element now contains a nonempty list of LI elements

  * the LI element can contain ordinary text as is allowed by the spec

  * the </LI> closing tag is now optional as is allowed by the spec

Several things still do not conform to the spec, in particular optional
tags for some elements.

Modified climacs.html to take advantage of these improvements.

Revision 1.26 - (view) (annotate) - [select for diffs]
Fri Apr 8 14:36:59 2005 UTC (9 years ago) by rstrandh
Branch: MAIN
Changes since 1.25: +100 -4 lines
Diff to previous 1.25 , to selected 1.6
Added <ul>...</ul> and <li>...</li> elements.

Modified some html files to be conform.

Revision 1.25 - (view) (annotate) - [select for diffs]
Fri Apr 8 08:30:42 2005 UTC (9 years ago) by rstrandh
Branch: MAIN
Changes since 1.24: +117 -80 lines
Diff to previous 1.24 , to selected 1.6
Added <p>..</p> element to html-syntax

Fixed climacs.html to conform to the HTML 4.0 standard.

Revision 1.24 - (view) (annotate) - [select for diffs]
Fri Apr 8 05:59:27 2005 UTC (9 years ago) by rstrandh
Branch: MAIN
Changes since 1.23: +65 -35 lines
Diff to previous 1.23 , to selected 1.6
headings h1 -- h6 added

Revision 1.23 - (view) (annotate) - [select for diffs]
Thu Apr 7 05:02:33 2005 UTC (9 years ago) by rstrandh
Branch: MAIN
Changes since 1.22: +25 -3 lines
Diff to previous 1.22 , to selected 1.6
Introduced the concept of inline element and block-level element.

Reorganized the attributes into core attributes, i18n attributes and
scripting events according to the HTML standard.

Revision 1.22 - (view) (annotate) - [select for diffs]
Mon Apr 4 11:49:05 2005 UTC (9 years ago) by rstrandh
Branch: MAIN
Changes since 1.21: +58 -17 lines
Diff to previous 1.21 , to selected 1.6
Defined a "string" syntactic entity where the contents are shown in
italics.

Defined an HREF attribute that takes a string as an argument

Fixed the <a> tag to take a list of attributes, just like <html> now
does.  The only possible attribute for the <a> tag at the moment is
HREF.

Revision 1.21 - (view) (annotate) - [select for diffs]
Mon Apr 4 06:20:52 2005 UTC (9 years ago) by rstrandh
Branch: MAIN
Changes since 1.20: +121 -47 lines
Diff to previous 1.20 , to selected 1.6
<html> tag now accepts LANG and DIR attributes.

Revision 1.20 - (view) (annotate) - [select for diffs]
Sun Mar 20 08:25:21 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.19: +9 -6 lines
Diff to previous 1.19 , to selected 1.6
Factored out the rules for `html' and `head' so that they now
use add-rule.

Revision 1.19 - (view) (annotate) - [select for diffs]
Fri Mar 18 07:49:17 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.18: +9 -8 lines
Diff to previous 1.18 , to selected 1.6
Added setf methods for offset of parse-trees.  Either a numerical
offset can be given, in which case, the start-mark must exist (since
we don't know the buffer), or else a mark can be given, in which case
it is cloned.

Removed references to start-mark from html-syntax.lisp, and removed it
from the export list of the climacs-syntax package.

Revision 1.18 - (view) (annotate) - [select for diffs]
Thu Mar 17 05:07:12 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.17: +88 -98 lines
Diff to previous 1.17 , to selected 1.6
The HTML syntax module is far from being complete, but it is now
almost entirely cleaned up so that it can be used as a model for
other syntax modules, in particular the Common Lisp syntax module.

Revision 1.17 - (view) (annotate) - [select for diffs]
Wed Mar 16 07:47:49 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.16: +89 -139 lines
Diff to previous 1.16 , to selected 1.6
Cleanups and code factoring in HTML syntax.

Fixed a bug in update-syntax.

Revision 1.16 - (view) (annotate) - [select for diffs]
Wed Mar 16 06:12:09 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.15: +153 -72 lines
Diff to previous 1.15 , to selected 1.6
The start-mark and size of parse trees are now automatically updated
in syntax.lisp, so there is no need for individual syntax modules to
be concerned with updating them.

Started restructuring the grammar in html-syntax so that for some
grammatical entity, grammar rules, display function, class definition,
etc are grouped together.  This will probably be the preferable way of
structuring most grammars for other syntax modules as well.

Revision 1.15 - (view) (annotate) - [select for diffs]
Tue Mar 15 12:51:39 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 , to selected 1.6
Minor fixes

Revision 1.14 - (view) (annotate) - [select for diffs]
Tue Mar 15 05:39:24 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.13: +2 -84 lines
Diff to previous 1.13 , to selected 1.6
The incremental lexer is now in the climacs-syntax package in the
syntax.lisp file.

Revision 1.13 - (view) (annotate) - [select for diffs]
Tue Mar 15 04:31:59 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.12: +76 -66 lines
Diff to previous 1.12 , to selected 1.6
factored out the incremental lexer from html-syntax.  The code is
still physically in the file html-syntax.lisp, but that will change
soon.

Revision 1.12 - (view) (annotate) - [select for diffs]
Sun Mar 13 20:51:48 2005 UTC (9 years, 1 month ago) by abakic
Branch: MAIN
Changes since 1.11: +10 -9 lines
Diff to previous 1.11 , to selected 1.6
Line-oriented persistent buffer (binseq2). Warning: Need to fix minor
bugs (related to number-of-lines-in-region, I believe).

base.lisp: Added faster methods on previous-line, next-line,
buffer-number-of-lines-in-region.

pane.lisp, cl-syntax.lisp, html-syntax.lisp, text-syntax.lisp:
Replaced some calls to make-instance to calls to clone-mark and (setf
offset), in order to avoid passing climacs-buffer to marks. This also
made possible to get rid of delegating methods on syntax.

climacs.asd: Added Persistent/binseq2.

packages.lisp: Added binseq2-related symbols.

Persistent/binseq.lisp, Persistent/obinseq.lisp: Cleanup.

Persistent/persistent-buffer.lisp: Added code for binseq2-buffer and
related marks. Also some minor fixes.

Revision 1.11 - (view) (annotate) - [select for diffs]
Sun Mar 13 06:55:27 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.10: +99 -78 lines
Diff to previous 1.10 , to selected 1.6
A step on the way to factoring out the incremental lexer.

Revision 1.10 - (view) (annotate) - [select for diffs]
Fri Mar 11 10:25:58 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.9: +42 -2 lines
Diff to previous 1.9 , to selected 1.6
recognize the <a> and </a> tags

Revision 1.9 - (view) (annotate) - [select for diffs]
Fri Mar 11 07:03:31 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.8: +120 -76 lines
Diff to previous 1.8 , to selected 1.6
HTML syntax now does syntax highlighting.

The current code is a mess, because I haven't figured out how much of
html-syntax.lisp can be factored out and put in syntax.lisp for use
with other syntax modules.

Also, the HTML syntax module is nowhere near complete.  It exists
merely as an illustration of what can be done with incremental
parsing.  It is definitely premature to try to turn it into something
more complete and truly useful for editing HTML.

Revision 1.8 - (view) (annotate) - [select for diffs]
Thu Mar 10 06:37:40 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.7: +77 -4 lines
Diff to previous 1.7 , to selected 1.6
More progress on html-syntax, which may eventually become a model
for many different language syntax modules.

The display function now traverses the parse tree up as long as a
valid parse tree exists.  The rest of the display is done from the
token sequence.  It is likely that all of this can be abstracted out
and put into syntax.lisp so that html-syntax would just become a
client among others for this traversal.

Not only is the cursor still not displayed, whitespace is not handled
during the traversal of the parse tree.  This will likely be fixed in
the next few day.

Revision 1.7 - (view) (annotate) - [select for diffs]
Mon Mar 7 06:51:02 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.6: +48 -1 lines
Diff to previous 1.6
First attempt at a display function (for html syntax) that uses the
output of an incremental lexer and parser.  This code is not complete
yet:

  * right now, it uses only the lexer output, and not the parser

  * the cursor is not displayed yet

  * it is too slow, most likely because the output records are all in
    one big bag, as opposed to being tree structured, such as the
    lines of basic syntax.

The slowness is not a serious problem, because one day, McCLIM will
have tree-structured output records itself, and because most syntax
modules (including this one, very soon) will have some tree structure
itself.  It might be worthwhile to display the part of the buffer
beyond a parse error in some artificially structured way, such as by
lines as in the current basic syntax.

Revision 1.6 - (view) (annotate) - [selected]
Sat Mar 5 07:03:53 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.5: +26 -5 lines
Diff to previous 1.5
Split off the climacs-html-syntax package from the climacs-syntax
package.  Exported some more symbols from the climacs-syntax package.
Implemented a few more functions in the climacs-syntax package that
can be used to travarse the parse stack.

The redisplay-pane function now calls a generic function
redisplay-pane-with-syntax that also takes a syntax object as argument.

Revision 1.5 - (view) (annotate) - [select for diffs]
Fri Mar 4 07:17:44 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 , to selected 1.6
Intoduced a function `map-over-parse-trees' that syntax modules can
use to traverse the parse tree.  This function traverses but one of
the paths through the parser data structure.  In general, there can be
an exponential number of such paths, but we assume anyone will do as
far as buffer syntax is concerned.

Revision 1.4 - (view) (annotate) - [select for diffs]
Mon Feb 28 08:51:34 2005 UTC (9 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.3: +214 -160 lines
Diff to previous 1.3 , to selected 1.6
Improvements to HTML syntax.  This syntax module now uses an
incremental lexer, and and incremental parser based on the existing
Earley parser in syntax.lisp.

Removed backward-to-error and forward-to-error, since I am not sure
that these are what we want.

Revision 1.3 - (view) (annotate) - [select for diffs]
Sat Feb 5 06:49:53 2005 UTC (9 years, 2 months ago) by rstrandh
Branch: MAIN
Changes since 1.2: +2 -0 lines
Diff to previous 1.2 , to selected 1.6
Implemented the new buffer-modification protocol with both
update-syntax and update-syntax-for-display.

Revision 1.2 - (view) (annotate) - [select for diffs]
Sat Feb 5 06:25:29 2005 UTC (9 years, 2 months ago) by rstrandh
Branch: MAIN
Changes since 1.1: +25 -17 lines
Diff to previous 1.1 , to selected 1.6
Improvements to HTML syntax.

Revision 1.1 - (view) (annotate) - [select for diffs]
Wed Feb 2 08:01:30 2005 UTC (9 years, 2 months ago) by rstrandh
Branch: MAIN
Diff to selected 1.6
Implemented an embryonic html-syntax module that uses the incremental
Earley parser.

Implemented a command (backward-to-error) to illustrate how
the module can be used.  I am not happy with my syntax yet, though.
It reports too many errors.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.5