[antlr-interest] Package Definition missing in ExprLexer, Present in ExprParser (why)
bryce.alcock at sungard.com
bryce.alcock at sungard.com
Fri Mar 30 11:34:06 PDT 2007
I am not getting the package name to show up in the
ExprLexer.java file, while it is showing up in the ExprParser.java file
see example below.
Given this ANTLR3 grammer segment:
--------------------------------------------------------------------------------
grammar Expr;// START:stat
options{
output=AST;
backtrack=true;
}
@header {
package com.sungard.[ Name Hidden ].ruleparser;
/**
*
* ANTLR Generated Files
*
*
* Copyright (C) Sungard Investment Managment Systems. All Rights
Reserved.
*
* This File may contain confidential, proprietary and privileged
information,
* and unauthorized disclosure or use is prohibited.
*
* @auther balcock
*/
}
prog: stat+ ;
...
----------------------------------------------------------------------------------
ExprLexer.java contains:
-----------------------------------------------------------------------------------
// $ANTLR 3.0b6 Expr.g 2007-03-30 13:10:12
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
public class ExprLexer extends Lexer {
public static final int T21=21;
public static final int COMPOUND=10;
public static final int T14=14;
...
-----------------------------------------------------------------------------------
ExprParser.java contains:
-----------------------------------------------------------------------------------
// $ANTLR 3.0b6 Expr.g 2007-03-30 13:10:11
package com.sungard.[ Name Hidden ].ruleparser;
/**
*
* ANTLR Generated Files
*
*
* Copyright (C) Sungard Investment Managment Systems. All Rights
Reserved.
*
* This File may contain confidential, proprietary and privileged
information,
* and unauthorized disclosure or use is prohibited.
*
* @auther balcock
*/
import org.antlr.runtime.*;
...
-----------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070330/37ef45fd/attachment-0001.html
More information about the antlr-interest
mailing list