Qore Programming Language Reference Manual 1.19.3
Loading...
Searching...
No Matches
Qore::Expression Class Reference

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

#include <QC_Expression.dox.h>

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