Skip to content

Commit 801d237

Browse files
authored
Revise Expression Tree Format to Universal Expression Tree
Updated the title and removed unnecessary sections.
1 parent ae638ac commit 801d237

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

spec.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
# Expression Tree Format
2-
3-
An universal expression tree notation.
1+
# Universal Expression Tree
42

53
## Overview
64

7-
Expressions parse to trees. This document describes a format for those trees — minimal, JSON-compatible, and portable across languages.
5+
Expressions parse to trees. Minimal, JSON-compatible, and portable across languages.
86

97
```
108
[operator, ...operands] operation
119
"name" identifier (resolved from context)
1210
[, value] literal (returned as-is)
1311
```
1412

15-
That's the entire format.
16-
17-
18-
## Tree Structure
19-
2013
An expression tree is one of three forms:
2114

2215
### 1. Identifier
@@ -55,8 +48,7 @@ An array where the first element is the operator, followed by operands.
5548
```
5649

5750

58-
59-
## Operator Reference
51+
## Operators
6052

6153
### Arithmetic
6254
```

0 commit comments

Comments
 (0)