Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28280

Parser

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Parser
Date 2014-04-27 15:46 -0700
Organization Canadian Mind Products
Message-ID <ur1rl9pb9bkqgd7dg87cqqt56bt4jljbc2@4ax.com> (permalink)

Show all headers | View raw


What is considered the best parser nowadays that generates the parser
in Java source code?

What I need in an abbreviated Java parser just to cut the program into
chunks, each class within that each declaration and method.

I have already written the parsing that takes it from there.

The idea is to rearrange your code in a defined canonical order,
e.g. statics before instance primitives before references, char before
int...

If I were designing Java, I would have put a keyword on the front of
each declaration e.g. dcl, and each method "method".

This would make parsing simpler and faster. It would also make
navigating with a simple search string easier. IF the keyword were
shown in special colour, it would make it much easier by eye to detect
method starts.
-- 
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 — Next in thread | Find similar | Unroll thread


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