Overview of G2
Programmatic Access
At the core of the developer's environment lies G2's structured natural language. G2 uses this language in all programmatic statements. Since the G2 language is similar to ordinary human language, you do not need to be a programmer to read statements that are written in G2.
For example, the following rule scans all refrigerators as G2 executes, tests each one for a specified temperature condition, and performs an action on any refrigerator for which the condition is true:
Programmatic control over a KB and its corresponding real-time external events occurs within:
Each of these items contains G2 statements. Statements consist of expressions; expressions can include actions.
Actions and Expressions
You can use G2 expressions to:
You can use G2 actions to perform many different tasks, including:
Expressions are presented in Chapter 20, Expressions. Chapter 19, Actions describes all actions.
Copyright © 1997 Gensym Corporation, Inc.