/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package fasp.parser.parsers;
import fasp.parser.tokenizer.LattToken;
import fasp.parser.*;
import fasp.parser.tokenizer.Token;
import fasp.parser.tokenizer.TokenState;
import fasp.datatypes.LattVal;
/**
*
* @author Jeroen Janssen <Jeroen.Janssen@vub.ac.be>
*/
public class LattValParser extends AbstractParser<LattVal> {
public LattVal parse(TokenState st) throws ParseException {
LattToken t = (LattToken)new TokenParser(Token.Type.LATTVAL).parse(st);
Double d = t.getValue();
return new LattVal(d);
}
}