File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -13,23 +13,23 @@ fa语言编译器实现。一款专注于元编程的编程语言,目标是尽
13
13
14
14
``` fa
15
15
class Program {
16
- public static void Meta (mut Dictionary<string, ClassBlock> _classes) {
16
+ public static void Meta (mut Dictionary<string, ClassBlock> _classes) {
17
17
var _stmt = stmt Console.WriteLine ("hello world!")
18
- _classes ["Program"]?.funcs["Main"]?.body_codes.Add (_stmt)
19
- }
20
-
21
- public static void Main () {
22
- }
18
+ _classes ["Program"]?.funcs["Main"]?.body_codes.Add (_stmt)
19
+ }
20
+
21
+ public static void Main () {
22
+ }
23
23
}
24
24
```
25
25
26
26
- 语句加入 ` calc ` 关键字即可将代码标记为元代码,编译期运行。示例代码:
27
27
28
28
``` fa
29
29
class Program {
30
- public static void Main () {
30
+ public static void Main () {
31
31
var compile_time = calc DateTime.Now()
32
32
Console.WriteLine ("Compile Time: {compile_time}")
33
- }
33
+ }
34
34
}
35
35
```
You can’t perform that action at this time.
0 commit comments