Macro methods added.

This commit is contained in:
Christoffer Lerno
2021-06-26 01:16:18 +02:00
committed by Christoffer Lerno
parent 9572c4afc9
commit 038ed7f9d5
27 changed files with 544 additions and 214 deletions

View File

@@ -0,0 +1,37 @@
extern func void printf(...);
struct An1
{
An3 x;
}
struct An3
{
An2 y;
}
define AnCall = func void();
struct An2
{
AnCall t;
}
func void An2.helloWorld(An2 *an2)
{
printf("An2 hello\n");
}
func void check()
{
printf("Checking\n");
}
func void main()
{
An1 an;
an.x.y.helloWorld();
an.x.y.t = ✓
an.x.y.t();
}