企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~ package interpreter import ( "testing" ) func TestInterpreter(t *testing.T) { context := Context{"abc"} list := []IAbstractExpression{} list = append(list, new(TerminalExpression)) list = append(list, new(TerminalExpression)) list = append(list, new(NonterminalExpression)) for _, val := range list { val.Interpret(&context) } } ~~~