Re: XML-oriented precompiler (current version is for PHP)



Satyam wrote:


(John wrote)

[Precompilers for languages embedded in other languages have been
around for a long time. I did one in 1981 and it was a well-known
technique then. -John]

(snip)

I wasn't asking about the concept of precompilers or about embedding
one language within another which I am acquainted with (I used
embedded SQL once), but about the usefulness of this particular
combination.

Precompilers and embedding isn't what I thought about when I read the
post, but closer to special purpose languages.

It is common to write a compiler in the language that it compiles,
but that is not always best, or always done. In some cases a special
language is designed for just one use.

The Kermit state machine has its Wermit language, though other
state machine languages exist.

Knuth's WEB is supposed to be more general than TeX, but I don't believe
it is widely used other than for TeX and associated programs.

I am sure others can find examples of special purpose languages.

-- glen
.



Relevant Pages

  • Re: LaTeX, misallocated effort?
    ... Python would be a comfy programming interface, to take care of the high ... LaTeX-like markup language could be a better alternative ... On the contrary, doing everything in TeX is too much, from the user's ... We have implicit typesetting objects in TeX system (all ...
    (comp.text.tex)
  • Re: forth on maglev rails?
    ... Fortran for some reasons suits better his needs. ... specific language? ... directly compile TeX. ... Would TeX have been programmed in Forth, ...
    (comp.lang.forth)
  • Re: Sane Syntax
    ... The programming model may be changed by rewriting ... Make use of existing markup ... Now you're mixing the markup language with the typesetter. ... typsetting concepts embodied by TeX proved to be timeless, ...
    (comp.text.tex)
  • Re: The state machine of no input
    ... >> I have been given a state machine, which takes no input, even though it ... >> only language accepted by a state machine taking no input must be the ... >> string and then only if the starting state is an accepting state. ... > How did your textbook define what it means for an automaton to acknowledge ...
    (sci.math)
  • Re: A Proper Lexer
    ... Common Lisp. ... e.g. if you can design it so that the little language has a space ... experimental packrat parser (which describes the construction of tokens and ... If you design it with a state machine macro - code executed ...
    (comp.lang.lisp)