Next: Ruleset Definition and Use, Previous: Precedence Parsing Overview, Up: Precedence Parsing [Contents][Index]
Here are the higher-level syntax types and an example of each. Precedence considerations are omitted for clarity. See Grammar Rule Definition for full details.
bye
calls the function exit with no arguments.
- 42
Calls the function negate with the argument 42.
x - y
Calls the function difference with arguments x and y.
x + y + z
Calls the function sum with arguments x, y, and
y.
5 !
Calls the function factorial with the argument 5.
set foo bar
Calls the function set! with the arguments foo and
bar.
/* almost any text here */
Ignores the comment delimited by /* and */.
{0, 1, 2}
Calls the function list with the arguments 0, 1,
and 2.
f(x, y)
Calls the function funcall with the arguments f, x,
and y.
set foo bar;
delimits the extent of the restfix operator set.