From a9c7d6523abaaa5b77b753be4e984ef0c51616f1 Mon Sep 17 00:00:00 2001 From: Phodal HUANG Date: Mon, 28 Oct 2019 14:24:17 +0800 Subject: [PATCH] feat: removce visitor code --- .gitignore | 1 + helloworld.go | 10 ++-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index ffab9f9..555b72c 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,4 @@ Makefile bc_demo bc_demo_test cmake_install.cmake +helloworld \ No newline at end of file diff --git a/helloworld.go b/helloworld.go index c4feab5..6dca696 100644 --- a/helloworld.go +++ b/helloworld.go @@ -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) } } -- GitLab