Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Passing a Method Name to a Method, Redux Date: Sun, 26 Jun 2011 23:27:38 -0700 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: <3uuf071k5c0b32cdlv31s7p1u6cjn3t11j@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 27 Jun 2011 06:27:39 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="20GYBuezvHpp83lA3Rh62Q"; logging-data="30360"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8gA3fV7cItr3cyG9/LvLN9rranit4leg=" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 In-Reply-To: <3uuf071k5c0b32cdlv31s7p1u6cjn3t11j@4ax.com> Cancel-Lock: sha1:qwhITFOEpFsvb33EqYdpo8tU4Sg= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5702 On 6/26/2011 8:42 PM, Gene Wirchenko wrote: > On Fri, 24 Jun 2011 17:25:01 -0400, Jeff Higgins >> What means simple? JavaCC is the parser generator that I'm most familiar >> with. > There are preprocessor commands. For them, the first character > of the line is "$". All of the other lines are text to be processed. > There is one level of string substitution. A parser generator makes parsers for you. You give it a syntax (like "starts with $") and it makes the parser. Generally very efficient as it will do optimizations in the code that are hard to find.