Re: [GTALUG] Online Course for Lex/Yacc?

2018-09-18 Thread Kevin Cozens via talk
On 2018-09-15 01:10 AM, William Park via talk wrote: Now, I want to take some course on Lex/Yacc, finally! What online course do you recommend? I have used Lex/Yacc in the past to create a custom "language" for an program installation system. I just read up on the programs as there was no "on

Re: [GTALUG] Online Course for Lex/Yacc?

2018-09-17 Thread Stewart Russell via talk
On Mon, Sep 17, 2018, 15:36 William Park via talk, wrote: > > Language is C; environment is embedded board of consumer/business > printers > So is this embedded as in "limited memory" and printers like "horrid binary protocols"? This might not fit with that kind of parser. Stewart > --- Talk M

Re: [GTALUG] Online Course for Lex/Yacc?

2018-09-17 Thread Alvin Starr via talk
On 09/17/2018 03:35 PM, William Park via talk wrote: On Mon, Sep 17, 2018 at 08:54:29AM -0400, Matthew Gordon via talk wrote: I'd also recommend against Yacc. As others have said, it's a great tool and very powerful but a recursive descent parser will do the job 99% of the time and will be much

Re: [GTALUG] Online Course for Lex/Yacc?

2018-09-17 Thread William Park via talk
On Mon, Sep 17, 2018 at 08:54:29AM -0400, Matthew Gordon via talk wrote: > I'd also recommend against Yacc. As others have said, it's a great tool and > very powerful but a recursive descent parser will do the job 99% of the > time and will be much easier. Writing a good unambiguous grammar for Yac

Re: [GTALUG] Online Course for Lex/Yacc?

2018-09-17 Thread Matthew Gordon via talk
I'd also recommend against Yacc. As others have said, it's a great tool and very powerful but a recursive descent parser will do the job 99% of the time and will be much easier. Writing a good unambiguous grammar for Yacc can be tricky and is much more difficult to debug than a recursive descent pa

Re: [GTALUG] Online Course for Lex/Yacc?

2018-09-16 Thread D. Hugh Redelmeier via talk
Ater advising against YACC, I thought I should promote it a bit. YACC uses a formal declarative system for specifying a language grammar (Backus-Naur Form). This has a number of nice features: - BNF is very well described and extensively used in the literature - it was invented to describe the

Re: [GTALUG] Online Course for Lex/Yacc?

2018-09-15 Thread ac via talk
On Sun, 16 Sep 2018 01:40:23 -0400 (EDT) "D. Hugh Redelmeier via talk" wrote: > | From: William Park via talk > | Every now and then, I come across situation where an ideal solution > | would have been a custom parser/interpreter, either to parse data > format | or to write my own sets of command

Re: [GTALUG] Online Course for Lex/Yacc?

2018-09-15 Thread D. Hugh Redelmeier via talk
| From: William Park via talk | Every now and then, I come across situation where an ideal solution | would have been a custom parser/interpreter, either to parse data format | or to write my own sets of commands. In each case, I don't know enough | to write it (I'm not Comp Sci) or don't have t

[GTALUG] Online Course for Lex/Yacc?

2018-09-14 Thread William Park via talk
Every now and then, I come across situation where an ideal solution would have been a custom parser/interpreter, either to parse data format or to write my own sets of commands. In each case, I don't know enough to write it (I'm not Comp Sci) or don't have time. So, I end up resorting to shell, a