On 08/10/2016 05:57 PM, Michael Torrie wrote: > On 08/10/2016 10:19 AM, Random832 wrote: >> On Wed, Aug 10, 2016, at 07:59, Dennis Lee Bieber wrote: >>> The use of = also has a long history... FORTRAN (where the comparison >>> was .EQ.), BASIC (granted, K&K required assignment to start with the >>> keyword LET, so the use of = was mainly a delimiter between target and >>> expression being assigned). >> >> Visual Basic actually uses = for both assignment and comparison >> *without* the Let keyword, it gets by on the fact that assignment is not >> an expression. > > But the grammar must still be a bit complex as sometimes the LHS of the > = is an expression, as well as the RHS. But I guess context makes it > all work. Still I've always thought the grammars for modern BASIC with > all its baggage must make for a complex grammar.
Sigh. So much for English grammar. That should be "complex parser." -- https://mail.python.org/mailman/listinfo/python-list