Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-13 Thread silvioprog
On Wed, Mar 11, 2015 at 6:38 AM, leledumbo wrote: > > However, I have a question: is there any article about 'how to write > lexical parsers' using Object Pascal? > > First, you need to differentiate them correctly. Lexical scanner (or simply > lexer) and parser, not lexical parser :) > > I've wr

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-11 Thread Mehmet Erol Sanliturk
On Wed, Mar 11, 2015 at 12:13 PM, Virgo Pärna wrote: > On Wed, 11 Mar 2015 08:18:35 -0700 (MST), leledumbo < > leledumbo_c...@yahoo.co.id> wrote: > > > > No idea with what's default by law or convention, but when I give no > > license, consider it public domain. > > > > By default author has

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-11 Thread Mark Morgan Lloyd
leledumbo wrote: When there is NO license information in your repositories , this means that "NO one can use them ." with respect to copy right laws or conventions . No idea with what's default by law or convention, but when I give no license, consider it public domain. I'd imagine that ap

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-11 Thread Virgo Pärna
On Wed, 11 Mar 2015 08:18:35 -0700 (MST), leledumbo wrote: > > No idea with what's default by law or convention, but when I give no > license, consider it public domain. > By default author has copyright and sole right to redistribute. And that's what applies, when nothing else is declared.

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-11 Thread leledumbo
in. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-to-write-an-eficient-lexical-scanner-parser-tp4041002p4041093.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- __

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-11 Thread Mehmet Erol Sanliturk
e the direct code generation approach anymore as I found the > abstract syntax tree to be usable for more than just code generation. > > > > -- > View this message in context: > http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-to-write-an-eficient-lexical-scanner-parser

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-11 Thread leledumbo
as a library for a mathematically provable language focusing in database driven application) I don't use the direct code generation approach anymore as I found the abstract syntax tree to be usable for more than just code generation. -- View this message in context: http://free-pascal-lazarus.9

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-10 Thread silvioprog
On Fri, Mar 6, 2015 at 4:21 PM, Anthony Walter wrote: > Here is something I originally wrote in 2001. I had a product briefly for > converting pascal code into documentation and it quite fast. Do with it as > you will. > > http://pastebin.com/qXJdHwGM > Nice parser. I had some ideas after seeing

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-10 Thread silvioprog
On Fri, Mar 6, 2015 at 3:29 PM, aradeonas wrote: > Hi Silvio, > > About this parsing subject maybe looking at BeniBela Xidel and > InternetTools help you or talking to Benito Aurthur of them. > He is a very good developer and kind person like you. > http://videlibri.sourceforge.net/xidel.html >

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-10 Thread silvioprog
On Fri, Mar 6, 2015 at 3:15 PM, Kostas Michalopoulos < badsectorac...@gmail.com> wrote: > This is a classic series of articles that show how to write a very simple > compiler in Turbo Pascal. The fundamentals when it comes to scanning are > the same: > > http://compilers.iecc.com/crenshaw/ > > I'v

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-06 Thread Anthony Walter
Here is something I originally wrote in 2001. I had a product briefly for converting pascal code into documentation and it quite fast. Do with it as you will. http://pastebin.com/qXJdHwGM -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org h

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-06 Thread aradeonas
Hi Silvio, About this parsing subject maybe looking at BeniBela Xidel and InternetTools help you or talking to Benito Aurthur of them. He is a very good developer and kind person like you. http://videlibri.sourceforge.net/xidel.html http://www.benibela.de/sources_en.html#internettools Ara On F

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-06 Thread Kostas Michalopoulos
This is a classic series of articles that show how to write a very simple compiler in Turbo Pascal. The fundamentals when it comes to scanning are the same: http://compilers.iecc.com/crenshaw/ I've also written a BASIC implementation for Free Pascal and Lazarus. The scanner should be straightforw

[Lazarus] How to write an eficient lexical scanner/parser?

2015-03-06 Thread silvioprog
Hello, I'm planning to write three parsers, and googling, I found some entries talking about lexical parsers. After that, I did a 'find in files' in FPC sources, and I found many parsers (eg: jsonparser (jsonscanner), JSParser (JSScanner), fpsqlparser (fpsqlscanner), PParser (PScanner), fpexprpar