Parse::Java

Parse::Java is a Perl module that acts like a parser for Java code.
Download

Parse::Java Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Claes Jakobsson
  • Publisher web site:
  • http://search.cpan.org/~claesjac/

Parse::Java Tags


Parse::Java Description

Parse::Java is a Perl module that acts like a parser for Java code. Parse::Java is a Perl module that acts like a parser for Java code.SYNOPSIS use Parse::Java; my $ast = Parse::Java->parse_file('MyClass.java');Parse::Java parses Java code into an Abstract Syntax Tree which can be used for many things like writing compilers and stuff.As this module is currently under development it isn't yet able to parse much Java. What's in the t/*.t basically works but not much else.The lexer should also more or less work fine except expansion of unicode escapes uNNNN.INTERFACEThis module uses an object-oriented interface.CLASS METHODSparse_file ( $path )Parses the contents of the file $path. Returns an AST representing the code.parse_stringParses the source in $string. Returns an AST representing the code.detokenize ( $ast )Walks the AST and replaces all Parse::Java::Token-objects with their stringified value.INSTANCE METHODS_set_input ( $source )Sets the input to the lexer._next_tokenReturns a list with the next token from the stream and its value. Requirements: · Perl


Parse::Java Related Software