Skip to content

Commit 597fb1b

Browse files
committed
fix: README
1 parent 04bc960 commit 597fb1b

1 file changed

Lines changed: 9 additions & 24 deletions

File tree

README.md

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ GSAM is a compiler and execution engine built around a graph-based computation m
1717

1818
Instead of traditional linear execution, GSAM represents programs as graphs of nodes, enabling flexible control flow, parallel execution patterns, and pluggable runtime behavior.
1919

20-
## Syntax
20+
## Syntax Overview
21+
22+
Refer to the [Semantics Example](./samples/semantics.gsam) for detailed syntax descriptions and usage.
2123

2224
```gsam
2325
? comment block (multi-line via indentation)
@@ -30,37 +32,20 @@ Instead of traditional linear execution, GSAM represents programs as graphs of n
3032
+ positional_argument
3133
> next node option
3234
33-
? chained execution example
3435
35-
- parent node
36-
+ input
37-
- next node A
38-
+ value
39-
- next node B
40-
+ value
4136
```
4237

4338
## Example
4439

4540
### Hello World
4641

4742
```gsam
48-
- print
49-
+ "Hello, GSAM!"
50-
```
51-
52-
### Recursive / Loop-like Execution
43+
? use console material
44+
$ console
5345
54-
```gsam
55-
* count
56-
+ curr
57-
- print
58-
+ curr
59-
- count
60-
- add
61-
+ curr
62-
+ number
63-
! 1
46+
? "log" node comes from "console"
47+
- log
48+
+ "Hello, GSAM!"
6449
```
6550

6651
## Architecture
@@ -99,7 +84,7 @@ Source code flows through:
9984
GSAM follows a minimal and explicit design approach:
10085

10186
- Graph-native execution model
102-
- Extensible through external modules
87+
- Extensible through external modules called “Materials”
10388
- Minimal assumptions in the core engine
10489
- Clear separation between syntax, execution, and behavior
10590

0 commit comments

Comments
 (0)