Re: [fpc-pascal] tply: start conditions

2018-08-10 Thread Martok
Am 10.08.2018 um 12:14 schrieb Martok: > What is really missing then is %x for exclusive start conditions, which would > solve all of that. Things I never wanted to be able to do: run scanner state machines in my head. But: turns out adding %x was less work than finding an alternative solution,

Re: [fpc-pascal] tply: start conditions

2018-08-10 Thread Martok
> This is a bit awkward if one has to write the prefix every time...PS - plex > doesn't define a name for the builtin default state, so even that would not > actually be possible. What is really missing then is %x for exclusive start conditions, which would solve all of that.

[fpc-pascal] tply: start conditions

2018-08-10 Thread Martok
Hi all, this is more of a generic lex question, but since plex doesn't support the flex extension that could easily fix it, I'm asking here. Take these lex rules: -- %start INCOMLINE %% "//"start(INCOMLINE);

Re: [fpc-pascal] TPLY

2010-10-29 Thread Brian Winfrey
Thanks, I'll look into this as well. On Fri, Oct 29, 2010 at 2:19 AM, Thierry Coq wrote: > Brian, > thanks for the diff, I'll take it into account and publish an update. > > On 28/10/2010 18:50, Brian Winfrey wrote: > ... >> >> The changes I made in this diff were simply to get it to compile. >>

Re: [fpc-pascal] TPLY

2010-10-29 Thread Thierry Coq
Brian, thanks for the diff, I'll take it into account and publish an update. On 28/10/2010 18:50, Brian Winfrey wrote: ... The changes I made in this diff were simply to get it to compile. Subsequently I renamed all files and folders to lowercase, converted spaces to underscores and added a pre

Re: [fpc-pascal] TPLY

2010-10-27 Thread Thierry Coq
Hello Brian, Yes, please send the diff file, so I can look at it. Which platform (Windows, Linux, FPC) are you using? Another approach would be to look at (and reverse engineer) the byte code. If it's not obfuscated, it might even be easier to parse and port than the native Java. On 27/10/

Re: [fpc-pascal] TPLY

2010-10-27 Thread Brian Winfrey
On Wed, Oct 27, 2010 at 9:21 AM, Brian Winfrey wrote: >> there is a port to Lazarus here: >> >> http://www.tcoq.org/ >> >> with some examples. I can help you if needed. The documentation is quite >> complete. > > Thanks it looks interesting, I like the component approach, I will > take a close loo

Re: [fpc-pascal] TPLY

2010-10-27 Thread Thierry Coq
Hello Brian, there is a port to Lazarus here: http://www.tcoq.org/ with some examples. I can help you if needed. The documentation is quite complete. Translating the whole Java language would be very difficult, but translating only the structure could be done. You would need to write a gram

[fpc-pascal] TPLY

2010-10-25 Thread Brian Winfrey
I recently saw a semi working example of a Java to Delphi converter that was done with javacc. Unfortunately it would only convert simple java (v 1.4 maybe). Can anyone recommend a good place to start reading or offer any advise to accomplish this with TPLY. I am looking into porting some Java l

Re: [fpc-pascal] TPLY

2006-08-11 Thread Marco van de Voort
> Some wish. Please change constant "max_elems" in unit tply\LexBase.pas to > 1024. Done in trunk (to 1000 actually) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] TPLY

2006-08-11 Thread Aleksey Y. Ulasevich \(STAKANOV\)
Some wish. Please change constant "max_elems" in unit tply\LexBase.pas to 1024.   Thanks   Aleksey Y. Ulasevich (STAKANOV)icq:26493224 http://stakanov.narod.ru ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/