[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Defining functions on the fly
From: |
Pascal J. Bourguignon |
Subject: |
Re: Defining functions on the fly |
Date: |
Tue, 16 Jun 2015 18:13:11 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Andreas, you might be interested in reading:
https://www.ics.uci.edu/~taylor/ics228/SynGen.pdf
and
Teitelbaum, T.; T. Reps (September 1981). "The Cornell Program
Synthesizer: A syntax-directed programming
environment". Communications of the ACM 24 (9):
563–573. doi:10.1145/358746.358755.
if you can get your hands on it.
Check also: https://en.wikipedia.org/wiki/Structure_editor
Basically, you could generate the whole mode all the structured editing
commands, from a grammar of the language you want to edit.
And since you could include in the grammar, grammars of other languages
when you have such escape, such as html scripts, or php, etc, you would
get automatically "multi-mode" structured editing modes.
Now, when you generate code (eg. a programming language compiler), it is
perfectly normal to have parts that are generated, and functions and
stubs that are written once for all for all the programs: a run-time
library.
Your code generate would naturally bind mode commands whose name would
be prefixed by the name of the grammar (= the mode), but the run-time
library would be the same for all those generated mode, and would have a
library prefix instead.
--
__Pascal Bourguignon__ http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk
- Re: Defining functions on the fly, (continued)
- Re: Defining functions on the fly, Andreas Röhler, 2015/06/15
- Message not available
- Re: Defining functions on the fly, Stefan Monnier, 2015/06/15
- Re: Defining functions on the fly, Andreas Röhler, 2015/06/16
- Re: Defining functions on the fly, Tassilo Horn, 2015/06/16
- Re: Defining functions on the fly, Andreas Röhler, 2015/06/16
- Re: Defining functions on the fly, Tassilo Horn, 2015/06/16
- Re: Defining functions on the fly, Andreas Röhler, 2015/06/16
- Re: Defining functions on the fly, Tassilo Horn, 2015/06/16
- Re: Defining functions on the fly, Andreas Röhler, 2015/06/16
- Message not available
- Re: Defining functions on the fly, Stefan Monnier, 2015/06/16
- Message not available
- Re: Defining functions on the fly,
Pascal J. Bourguignon <=
- Re: Defining functions on the fly, Andreas Röhler, 2015/06/16
- Re: Defining functions on the fly, Andreas Röhler, 2015/06/16
- Message not available
- Re: Defining functions on the fly, Pascal J. Bourguignon, 2015/06/16
- Re: Defining functions on the fly, Andreas Röhler, 2015/06/16
- Message not available
- Re: Defining functions on the fly, Pascal J. Bourguignon, 2015/06/16
- Message not available
- Re: Defining functions on the fly, Stefan Monnier, 2015/06/16
- Message not available
- Re: Defining functions on the fly, Stefan Monnier, 2015/06/16
- Re: Defining functions on the fly, Andreas Röhler, 2015/06/17
- Message not available
- Re: Defining functions on the fly, Stefan Monnier, 2015/06/17
- Re: Defining functions on the fly, Andreas Röhler, 2015/06/17