/*
 * SyntaxErrorState.java - description
 * Created on 04.03.2002, 12:47:19
 * 
 * Copyright (C) 2001, 2002 Jan Arne Petersen, Benoit Cerrina
 * Jan Arne Petersen <jpetersen@uni-bonn.de>
 * Benoit Cerrina <b.cerrina@wanadoo.fr>
 *
 * JRuby - http://jruby.sourceforge.net
 * 
 * This file is part of JRuby
 * 
 * JRuby is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * JRuby is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with JRuby; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 * 
 */
package org.jruby.parser;
/** 
 * Parser state when a syntax error occured.
 * used to compute an error message
 * @author  Benoit Cerrina
 * @version $Revision: 1.1 $
 */
public class SyntaxErrorState
{
	private	String _Found;
	private String[] _Expected;
	public SyntaxErrorState(String[] iExpected, String iFound)
	{
		_Expected = iExpected;
		_Found = iFound;
	}
	/**
	 * the name of the found token.
	 **/
	public	String found(){return _Found;}
	/**
	 * the list of the names of the expected tokens.
	 **/
	public String[] expected(){return _Expected;}
}
