未验证 提交 a9c7d652 编写于 作者: P Phodal HUANG

feat: removce visitor code

上级 d37b51fa
......@@ -43,3 +43,4 @@ Makefile
bc_demo
bc_demo_test
cmake_install.cmake
helloworld
\ No newline at end of file
......@@ -3,13 +3,13 @@ package main
import (
//"./cmd"
"fmt"
"github.com/antlr/antlr4/runtime/Go/antlr"
"os"
"path/filepath"
"strings"
. "./language/java"
. "./visitor"
)
func main() {
......@@ -29,13 +29,7 @@ func analysisPath(codeDir string) {
parser := processFile(file)
context := parser.CompilationUnit()
context.GetStart()
v := NewJavaCallVisitor()
v.Visit(context)
context.Accept(v);
//fmt.Println(context.GetText())
fmt.Println(context)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册