Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Expression (gb.eval)

This class represents a dynamic Gambas expression.

You can inherit this class to customize the syntax analyzer, by reimplementing the GetValue, IsIdentifier and IsSubr methods.

This class is creatable.

Static methods
IsIdentifier   Return if a specific Symbol is an identifier.
IsSubr   Return if a specific Symbol is a subroutine.

Properties
Environment   Gets or sets the collection used for getting the value of the undefined symbols in the expression.
Text   This is the text of the expression.
Value   Gets the computed value of the expression.

Methods
Compile   Compiles the expression.
GetValue   Return the value of the given Symbol.

Examples

Use "gb.eval"

Dim Expr as New Expression
Expr.Text = "21+58=79"
Print Expr.Value
True