[fpc-pascal] Next language feature for pas2js...
Ryan Joseph
ryan at thealchemistguild.com
Tue May 1 13:09:47 CEST 2018
> On May 1, 2018, at 5:55 PM, Marco van de Voort <marcov at stack.nl> wrote:
>
> I already stumbled on regex :_)
Anyone feel free to make a good example of a token parser in Pascal so I can see how it looks. I never an actual good parser that understands syntax so I don’t have any good examples to go by.
In PHP I always just load the file into string and loop over it line by line using regex to cut out the parts I need. I like it because it’s so easy to write and gets the job done. What ever I would make it Pascal would be 10x larger probably.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list