Skip to content

Commit 3892afb

Browse files
authored
Merge pull request #14 from gamebox/cleanup-match-references
Cleanup references to `match` in Guidebook
2 parents 5a7b7f9 + 568aba3 commit 3892afb

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/handbook/actions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ weight: 3
1010

1111
## Description
1212

13-
There are three actions in Eve: `match`, `bind`, and `commit`.
13+
There are three actions in Eve: `search`, `bind`, and `commit`.
1414

15-
`match` is used when you want to gather records from one or more databases. These records are called "supporting records", because they are used as a basis for bound or committed records.
15+
`search` is used when you want to gather records from one or more databases. These records are called "supporting records", because they are used as a basis for bound or committed records.
1616

17-
`bind` and `commit` actions are used when you want to update records in one or more databases, but they differ in the way the updates are performed.
17+
`bind` and `commit` actions are used when you want to update records in one or more databases, but they differ in the way the updates are performed.
1818

19-
- bound records last only as long as their supporting records. When supporting records changes, then bound records changes acordingly, replacing any previously bound records.
19+
- bound records last only as long as their supporting records. When supporting records changes, then bound records changes accordingly, replacing any previously bound records.
2020

2121
- committed records persist past the lifetime of their supporting records. When supporting records change, then a new record is committed, leaving any previously committed records still intact.
2222

@@ -28,4 +28,4 @@ There are three actions in Eve: `match`, `bind`, and `commit`.
2828

2929
## See Also
3030

31-
[match](../match) | [bind](../bind) | [commit](../commit)
31+
[search](../search) | [bind](../bind) | [commit](../commit)

src/handbook/blocks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Blocks automatically keep bound and committed records up-to-date with matched re
5252

5353
## Tips
5454

55-
Althgouth they are similar, it's important not to think of blocks like functions in other languages. Blocks don't have a name, and you don't "call" them like you do functions. Instead, you "use" a block by creating the records for which it searches.
55+
Although they are similar, it's important not to think of blocks like functions in other languages. Blocks don't have a name, and you don't "call" them like you do functions. Instead, you "use" a block by creating the records for which it searches.
5656

5757
Likewise, there is no "main" block. Since Eve is declarative and there is no order, there is no particular starting point for a program. As a close analog, any block that does not search for records will execute when the program starts. For instance:
5858

@@ -66,7 +66,7 @@ This block has no `search` action, so it doesn't depend on any other records. Th
6666

6767
## Examples
6868

69-
A block with match and bind actions. The bind action adds the `#div` to the `@browser` database.
69+
A block with search and bind actions. The bind action adds the `#div` to the `@browser` database.
7070

7171
```eve
7272
search
@@ -76,7 +76,7 @@ bind @browser
7676
[#div text: name]
7777
```
7878

79-
A block with only a commit action:
79+
A block with only a commit action:
8080

8181
```eve
8282
commit

src/handbook/ebnf.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ uuid ="⦑" (unicode - specials) "⦒"
3636
## Keywords and Identifiers
3737

3838
```ebnf
39-
match = "match";
39+
search = "search";
4040
action = "bind" | "commit";
4141
if = "if";
4242
then = "then";
4343
else = "else";
4444
is = "is";
4545
not = "not";
4646
none = "none";
47-
keyword = match | action | if | then | else | boolean | is | not | none
47+
keyword = search | action | if | then | else | boolean | is | not | none
4848
non-special-non-numeric = non-special - numeric
4949
identifier = (non-special-non-numeric {non-special}) - keyword - "```";
5050
```
@@ -126,7 +126,7 @@ if-statement = (identifier | binding-group) whitespace+ equality whitespace+
126126

127127
```ebnf
128128
database-declaration = name | "(" {name whitespace+} ")"
129-
match-section = match whitespace+ [database-declaration whitespace+] {statement whitespace}
129+
match-section = search whitespace+ [database-declaration whitespace+] {statement whitespace}
130130
action-section = action whitespace+ [database-declaration whitespace+] {action-statement whitespace}
131131
section = match-sectiong | action-section
132132
```
@@ -139,4 +139,4 @@ start-fence = newline fence-symbol [whitespace* (unicode - newline)] newline
139139
end-fence = newline fence-symbol newline
140140
block = start-fence {section} end-fence
141141
program = {unicode | whitespace | block}
142-
```
142+
```

src/handbook/merge.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ record <- [attribute: value, ... ]
2525
Match a record and merge a record into it.
2626

2727
```eve
28-
match
28+
search
2929
celia = [@Celia]
3030
bind
3131
celia <- [#student grade: 10, school: "East"]
3232
```
3333

3434
## See Also
3535

36-
[set operator](../set) | [add operator](../add) | [remove operator](../remove) | [action phase](../action-phase)
36+
[set operator](../set) | [add operator](../add) | [remove operator](../remove) | [action phase](../action-phase)

0 commit comments

Comments
 (0)