https://github.com/dns2utf8/gugelhupf
A ECMA-Script VM written in rust
https://github.com/dns2utf8/gugelhupf
Last synced: about 1 year ago
JSON representation
A ECMA-Script VM written in rust
- Host: GitHub
- URL: https://github.com/dns2utf8/gugelhupf
- Owner: dns2utf8
- Created: 2017-08-04T21:34:16.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-05T13:17:54.000Z (almost 9 years ago)
- Last Synced: 2025-06-08T00:46:02.833Z (about 1 year ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gugelhupf
An ECMA-Script VM.
## Design Runtime
```
Create Gugelhupf-Context
||
`´
Add source code ---> Parse AST
|| ||
`´ `´
Run loop <--- Inject parsed AST
```
## Design interface with rust
The interpreter searches the JS scopes for a symbol.
If it can not find it it will look through the "native" symbols.
Native symbols are structs stored inside the Gugelhupf-Context.
Extending native symbols is as easy as adding a struct to the Gugelhupf-Context.