[TYPO3-dev] TS compiler
Stefan Kreisberg
stefan at nospam-linkfactory.dk
Fri May 11 13:53:38 CEST 2007
Elmar Hinz wrote:
> Am Fri, 13 Apr 2007 13:56:58 +0300 schrieb Dmitry Dulepov:
>
>> Hi!
>>
>> Elmar Hinz wrote:
>>> currently I learn how to write compilers. As object of my lessons I have
>>> choosen TypoScript. I can produce the first output now, just the basics
>>> of the TS grammer for now to parse it into a PHP variable.
>>>
>>> Is there any interest in a TS compile written in C?
>>
>> Check adodb php library. They have php extension written in C. PHP code
>> checks if it is available (tries to load it dinamically) and uses
>> automatically (transparently for caller). If you can make TS parser like
>> this, this would be absolutely wonderful!
>>
>
> Hi Dmitry,
>
> I have uploaded a first working prototype to SVN yesterday (tx_tsc). It
> does tokenizing and syntax checking. It doesn't check any
> semantics.
One question then: Is semantics verification at all possible? I would love
if it were - but I think the language is so diverse that a complete
semantic analysis would be impossible?
Do you have comtinued compilation, i.e. like "one error found" but tries to
keep on analyzing? ;-)
And what about TS for vs. 5.0?
Just some ideas/questions from my curious mind ...
> Braced blocks and multiline values are already supported.
>
> Copies ( < ) are TODO.
>
> Conditions and symlinks ( =< ) will not be supported. That is IMHO the
> task of pre and post processors.
>
> Error messages still rudimentary.
>
> See the README for compilation and usage.
>
> Regrads
>
> Elmar
--
vh Stefan Kreisberg, a.k.a. Strato
***********************************
The 80's -- when you can't tell hairstyles from chemotherapy.
More information about the TYPO3-dev
mailing list