Am 24.07.2014 um 23:34 schrieb Stephen Leake <[email protected]>:

> I won't spend too much time on this, if it proves complicated. Better
> to work on an FFI for Emacs, and then the Ada mode parser in Ada. Or on
> a parser in a separate process, as a first step.

Regarding performance, maybe there is a comparatively simple
approach to handling large files with what we've got:

The ingredients would be:

1 something alongside Emacs's paging mechanism, with a dedicated
  "mini" parser that just divides the text into Ada compatible
  pieces, by finding the (analogs of) page delimiters (no Ada
  parsing required for the latter function).

2 a notion of parsing unit, so that the parser needs not
  handle all of the file in the buffer, but can work withing
  a "page".

3 file local variables for turning on the mechanism

A (rare?) problem with 1 could be huge nested subprograms
that cannot suitably be divided. But still, indentation could
be turned of with 3 if that's machine generated code, say,
that is not usually edited by humans.

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to