Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28311
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Parser |
| Date | 2014-04-29 13:15 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <eq10m990mf9uci9mtpgd9l70sof2k3gj6a@4ax.com> (permalink) |
| References | <ur1rl9pb9bkqgd7dg87cqqt56bt4jljbc2@4ax.com> <535e1fc6$0$2975$e4fe514c@news.xs4all.nl> |
On Mon, 28 Apr 2014 11:30:45 +0200, Silvio <silvio@internet.com>
wrote, quoted or indirectly quoted someone who said :
>
>The fact that a no such keywords exist does not make parsing slower by
>definition. In the Java case it unlikely that such keywords would make
>parsing faster. The language grammar defines how fast a parser can be.
>Although the Java grammar is not strictly LALR(x) Java can be parsed
>pretty left-to-right with the use of some simple tweaks and assumptions
>to prevent expensive things like backtracking
Consider how far you have to parse into definition to tell if you have
a variable or a method definition.
An IDE could insert visible markers to mark the begins and end of
things. I must waste at least an hour a day trying to figure out which
{ } balances with what. It is not a task my eyes can do, especially
when the other half is offscreen.
Another solution would be a SCID which would not let you cut/copy
paste an unbalanced block of code. You would think of program as
composed on units -- like plumbing, not a stream of characters.
--
Roedy Green Canadian Mind Products http://mindprod.com
Computers are like Old Testament gods; lots of rules and no mercy.
~ Joseph Campbell (born: 1904-03-26 died: 1987-10-31 at age: 83)
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Parser Roedy Green <see_website@mindprod.com.invalid> - 2014-04-27 15:46 -0700
[LONG POST] Re: Parser Jeff Higgins <jeff@invalid.invalid> - 2014-04-27 19:59 -0400
Re: [LONG POST] Re: Parser Jeff Higgins <jeff@invalid.invalid> - 2014-04-27 20:00 -0400
Re: [LONG POST] Re: Parser Roedy Green <see_website@mindprod.com.invalid> - 2014-04-28 02:09 -0700
Re: Parser Silvio <silvio@internet.com> - 2014-04-28 11:30 +0200
Re: Parser Roedy Green <see_website@mindprod.com.invalid> - 2014-04-29 13:15 -0700
Re: Parser Joerg Meier <joergmmeier@arcor.de> - 2014-04-29 22:55 +0200
Re: Parser Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-05-05 08:13 +0000
Re: Parser Jeff Higgins <jeff@invalid.invalid> - 2014-04-29 18:28 -0400
Re: Parser Jeff Higgins <jeff@invalid.invalid> - 2014-04-29 18:35 -0400
Re: Parser Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> - 2014-04-29 17:31 -0500
Re: Parser Simon Lewis <simonlewis2001@gmail.com> - 2014-04-30 15:13 +0200
csiph-web