March 01, 1999
Compiler Construction with ANTLR and Java
Compiler Construction with ANTLR and JavaBy Gary L. SchapsDr. Dobb's Journal March 1999
try {
DataOutputStream out = new DataOutputStream(
new FileOutputStream(
patFile.substring(0, patFile.length() - 3) + "pbi"));
// generate code
PBIWriter writer = new PBIWriter();
writer.generateCode(out);
} catch(IOException ex) {
...
}
Example 5: Creating a binary output file.
Copyright © 1999, Dr. Dobb's Journal
|
|
||||||||||||||||||||||||||||
|
|
|
|