Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #24363
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: How to scan Java source texts? |
| Date | 2013-06-11 12:55 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <kp7v3b$508$1@dont-email.me> (permalink) |
| References | <Java-Scanner-20130611180636@ram.dialup.fu-berlin.de> <tokens-20130611205333@ram.dialup.fu-berlin.de> |
On 6/11/2013 11:54 AM, Stefan Ram wrote: > ram@zedat.fu-berlin.de (Stefan Ram) writes: >> I am able to write a scanner for Java myself, but this would >> take days. So I would like to shortcut it by using a Java SE >> (with JDK) call. (I would not like to use a third-party > > It might not be easy to get this right. For example, a No it's not. I recommend a third party library. Antlr has a Java syntax already worked out. There's also other dedicated Java parsers. Note you're talking about two things here. Lexing and parsing. A lexer breaks text up into tokens, a parser decides how to interpret the result. Parsers traditionally have a lot more contextual information, whereas lexers are just simpler state machines that break up text.
Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread
Re: How to scan Java source texts? markspace <markspace@nospam.nospam> - 2013-06-11 12:55 -0700
csiph-web