支持import/export #7

Open
opened 2023-08-31 05:11:47 +00:00 by szTom · 0 comments
Collaborator

支持包含其他源文件,添加 importexport 关键字

考虑语法:

lib.ac

export Id = Fn<A>(h: A) {
  return h;
};

main.ac

lib = import(lib.ac);

IdWarp = Fn<A>(h: A) {
  return lib.Id(h);
};
支持包含其他源文件,添加 `import` 和 `export` 关键字 考虑语法: 在 `lib.ac`: ``` export Id = Fn<A>(h: A) { return h; }; ``` 在 `main.ac`: ``` lib = import(lib.ac); IdWarp = Fn<A>(h: A) { return lib.Id(h); }; ```
szTom added the
enhancement
label 2023-08-31 05:32:15 +00:00
szTom added this to the 9月迭代计划 project 2023-08-31 05:32:20 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ez_lcw/acpa#7
No description provided.