alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (README.update)

This example Java source code file (README.update) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

command, files, grammar, have, ipacl, ipv6address, jdm, lauch, once, some, these, you

The README.update Java example source code

1)Copy Parser.jjt in a dedicated directory.

2) Grammar modificatiobns:
Grammar located in file Parser.jjt :

3) Command :
/usr/lang/JAVA/JavaCC_2.0/bin/jjtree Parser.jjt
/usr/lang/JAVA/JavaCC_2.0/bin/javacc Parser.jj

4) Files to copy back in IPAcl directory:
If you added new node (eg :IpV6Address()) copy the JDM file (eg:JDMIpV6Address.java)
In any cases copy back (These files must be checkedout in IPAcl directory):
ASCII_CharStream.java
JJTParserState.java
ParseException.java
Parser.java
ParserConstants.java
ParserTokenManager.java
ParserTreeConstants.java
TokenMgrError.java

5) You need to modify any JDM files you copied back. Lauch the compilation and you will see what is wrong.
Have a look to similar nodes in order to see how to modify. Some protected methods have to be overloaded.

6) Once your updates are running, copy back:
Parser.jj
Parser.jjt

7) DONE.

Other Java examples (source code examples)

Here is a short list of links related to this Java README.update source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.