Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何检测存在循环依赖的macro? #353

Open
654894017 opened this issue Sep 24, 2024 · 1 comment
Open

如何检测存在循环依赖的macro? #353

654894017 opened this issue Sep 24, 2024 · 1 comment

Comments

@654894017
Copy link

    runner.addMacro("是否优秀", "计算平均成绩>90");
    runner.addMacro("计算平均成绩", "(语文+数学+英语)/3.0");
    runner.addMacro("计算平均成绩3", "计算平均成绩2");
    runner.addMacro("计算平均成绩2", "计算平均成绩3");

计算平均成绩3 和 计算平均成绩2 , 存在循环依赖,我如何进行检测?

@654894017 654894017 changed the title 如何判断存在循环依赖的macro? 如何检测存在循环依赖的macro? Sep 24, 2024
@dengWuuu
Copy link

dengWuuu commented Oct 8, 2024

你或许可以自己弄一个拓扑排序检测

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants