ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的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) } } ~~~