Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #24363 > unrolled thread
| Started by | markspace <markspace@nospam.nospam> |
|---|---|
| First post | 2013-06-11 12:55 -0700 |
| Last post | 2013-06-11 12:55 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.java.programmer
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How to scan Java source texts? markspace <markspace@nospam.nospam> - 2013-06-11 12:55 -0700
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Date | 2013-06-11 12:55 -0700 |
| Subject | Re: How to scan Java source texts? |
| Message-ID | <kp7v3b$508$1@dont-email.me> |
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 top | Article view | comp.lang.java.programmer
csiph-web