public Term doubleLiteral ( ) throws SourceCodeException { Token valToken = consumeToken ( FLOATING_POINT_LITERAL ) ; NumericType result = new DoubleLiteral ( Double . parseDouble ( valToken . image ) ) ; // Set the position that the literal was parsed from. SourceCodePosition position = new SourceCodePositionImpl ( valToken . beginLine , valToken . beginColumn , valToken . endLine , valToken . endColumn ) ; result . setSourceCodePosition ( position ) ; return result ; }
Parses a real number literal .