Feature #42

Java Scanner

Added by Kornelius Kalnbach almost 2 years ago. Updated almost 2 years ago.

Status:Closed Start:09/12/2008
Priority:Normal Due date:
Assigned to:Kornelius Kalnbach % Done:

100%

Category:Scanner requests
Target version:0.8

Description

We need to support at least the most popular language ;)

We should have no trouble to find example code. JRuby?

Associated revisions

Revision 255
Added by Kornelius Kalnbach almost 2 years ago

New: Java Scanner (closes #42).
  • Based on JavaScript, does a good job, but may need more polish.
  • Java::BuiltinTypes::List is a helper constant that contains 2389 Java types.
    • The list was generated from TextMate's Java bundle with the help of SimpleRegexpScanner.
  • I added the JRuby core classes as example code for testing (1.8 MB)
JavaScript Scanner:
  • Fixed recognition of floats and algebraic signs.
    • Still needs work - we need to distinguish i-1 from i+-1.
More changes:
  • New: SimpleRegexpScanner
  • Added new token class :annotation along with CSS styles.
    • Should be useful for Python, too.
  • coderay_suite warns if no scanner was found for this language.
  • PluginHost#default can be called without parameter (will return default id)

History

Updated by Kornelius Kalnbach almost 2 years ago

We can base this one on the C scanner.

Updated by Kornelius Kalnbach almost 2 years ago

The PLEAC code for Java may be helpful.

Updated by Kornelius Kalnbach almost 2 years ago

Maybe it's easier to base it on the JavaScript Scanner.

Updated by Kornelius Kalnbach almost 2 years ago

  • % Done changed from 0 to 50

I'm working on it.

Updated by Kornelius Kalnbach almost 2 years ago

  • Status changed from New to Closed
  • % Done changed from 50 to 100

Applied in changeset r255.

Also available in: Atom PDF