Skip to content

Commit 8729f06

Browse files
author
Willem Wyndham
committed
Merge branch '0.7' into dev_transform
1 parent 261b8bf commit 8729f06

32 files changed

+5297
-14
lines changed

bin/asinit

100644100755
File mode changed.

lib/visitor/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Near Bindings
2+
3+
This AST transformer is added to the compiler fontend so that it is called automatically after all files have been parsed.
4+
5+
Any file that has `//@nearfile` as the first line, will be processed and a new source text will be generated.
6+
7+
Currently any class defined in the file will have an `encode` and `decode` method for serializing to and from json. Furthermore, any functions that are exported by an entry function are wrapped so that their arguments are deserialized from storage and its return value is serailazed.
8+
9+
Furthermore `./src/preamble.ts` defines a string that can be added to the top of the source file. After each file is processed the new source text is parsed. This means any new imports added in the preamble will be parsed too.

0 commit comments

Comments
 (0)