summaryrefslogtreecommitdiff
blob: 1247545863521d15e715ec2257f5b7d4fc43b4eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
title: Aliases
weight: 4
---
Nearly all computations and instructions have aliases, making it easier to
write in the language when not used to it. This page provides most of them.  As
a general rule, all underscores (`_`) are optional, all `declare` can be
replaced by `define` and `def`.

* `abs`: `absolute`.
* `and`: `/\`.
* `>=`: `greater_equal_than`, `ge`.
* `/`: `divide`, `div`.
* `=`: `==`, `equals`, `eq`.
* `declare_alias_type`: `declare_sub_type`, `typedef`.
* `declare_structure_type`: `declare_structure`, `declare_dict_type`,
  `declare_dict`.
* `declare_event_type`: `declare_event`.
* `declare_sequence`: `declare_seq`, `declare_procedure`, `declare_proc`.
* `ignore_error`: `ignore_warning`.
* `free`: `release`, `destroy`.
* `implies`: `=>`, `->`.
* `is_member`: `contains`, `has`.
* `=<`: `<=`, `lower_equal_than`, `le`.
* `<`: `lower_than`, `lt`.
* `-`: `minus`
* `min`: `minimum`.
* `max`: `maximum`.
* `eval`: `evaluate`.
* `%`: `mod`, `modulo`.
* `new`: `reserve`, `create`.
* `not`: `~`, `!`.
* `add_element`: `add`.
* `one_in`: `exactly_one_in`, `exactly_one`, `one`.
* `remove_at`: `remove_element_at`, `remove_elem_at`.
* `set`: `set_value`, `set_val`, `set_variable`, `set_var`.
* `var`: `variable`.
* `visit`: `call`, `call_sequence`, `call_procedure`, `call_seq`, `call_proc`,
   `visit_sequence`, `visit_procedure`, `visit_seq`, `visit_proc`.
* `jump_to`: `continue_as`, `continue_to`, `continue_with`, `jump`, `go_to`,
  `exec`.  And you can suffix `_proc`, `_procedure`, `_seq`, or `_sequence` to
  any of these.