Package fasp.parser.parsers

Source Code of fasp.parser.parsers.LattValParser

/*
* 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);
  }
}
TOP

Related Classes of fasp.parser.parsers.LattValParser

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.