Qore Programming Language Reference Manual  1.8.0
Qore::Expression Class Reference

Expression objects represent a single executable expression. More...

Public Member Methods

 constructor (Program pgm, string source, string label)
 Creates the expression object. More...
 
auto eval ()
 Evaluates the expression and returns any return value. More...
 

Detailed Description

Expression objects represent a single executable expression.

Since
Qore 0.9.5

Member Function Documentation

◆ constructor()

Qore::Expression::constructor ( Program  pgm,
string  source,
string  label 
)

Creates the expression object.

Parameters
pgmThe Program object where the expression will be created
sourceThe source to the expression
labelthe label for the expression

◆ eval()

auto Qore::Expression::eval ( )

Evaluates the expression and returns any return value.

Returns
The return value of the expression after evaluation