[Feat] 详细区分左值(LvObject)与右值(RvObject -> ObjectPtr)
[Impl] 重构evaluator.cpp + hpp 全部 [Feat] 增加对于IndexExpr的解析 [Fix][Impl] 现在点运算符不由BinaryExpr负责,增加MemberExpr,单独实现解析 [Impl] 项目目录全部翻修, src/目录下单独文件夹放置每一个模块
This commit is contained in:
17
test.fig
17
test.fig
@@ -1,14 +1,15 @@
|
||||
struct test
|
||||
struct Person
|
||||
{
|
||||
bar:String = "1233";
|
||||
func foo()
|
||||
name: String;
|
||||
|
||||
func getName() -> String
|
||||
{
|
||||
__fstdout_println(bar);
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
var x := test{};
|
||||
x.foo();
|
||||
var person := Person{"PuqiAR"};
|
||||
|
||||
x.bar = "555";
|
||||
x.foo();
|
||||
const print := __fstdout_println;
|
||||
|
||||
print(person.getName());
|
||||
Reference in New Issue
Block a user