我正在学习 C 中的 AOP,使用 aspeCt 作为编译器。我遇到的问题是,当我编译时,我不断line 2 error--1: syntax error near token ''
从我的 .acc 文件中得到错误。
我假设这是因为我的 .acc 文件中的 before 函数。是否有我应该导入的库?还是我在这里完全错了?代码:
#include <stdio.h>
before():execution(int main()) {
printf("Before test successful!\n");
}
after(): execution(int main()) {
printf("world!\n");
}