[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pushback buffer overflow exception



Here is the promised attachment.

Etienne

Prof. Etienne M. Gagnon wrote:
I have attached to this message the Main.java that I ued to test your grammar.

import java.io.*;
import quoted_char.node.*;
import quoted_char.analysis.*;
import quoted_char.parser.*;
import quoted_char.lexer.*;

public class Main
{
    public static void main(String[] args) throws Exception
    {
	System.out.println
	    (new Parser
	     (new Lexer
	      (new PushbackReader
	       (new FileReader
		(args[0]),
		1000)
	       )
	      ).parse()
	     );
    }
}