Skip to content

Is it possible to compare two partial java code fragment with the tool? #284

Answered by zqudm
zqudm asked this question in Q&A
Discussion options

You must be logged in to vote

After adding tree-sitter-parser.py in the system's path, the code runs successfully. However, the tree-sitter backend doesn't seem to work for me. To illustrate, we use the following simple example to show the reason.

package main.java.utils;
import java.net.URL;
import java.util.List;
import java.util.ArrayList;
import java.net.URLClassLoader;
import java.io.File;
import java.util.HashSet;
import java.util.Set;
import org.eclipse.jdt.core.dom.AST;
import org.eclipse.jdt.core.dom.ASTNode;
import org.eclipse.jdt.core.dom.ASTParser;
import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.CompilationUnit;
import org.eclipse.jdt.core.dom.SimpleName;
import org.eclipse.jdt.…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jrfaller
Comment options

Comment options

You must be logged in to vote
3 replies
@jrfaller
Comment options

@zqudm
Comment options

@jrfaller
Comment options

Comment options

You must be logged in to vote
1 reply
@jrfaller
Comment options

Answer selected by jrfaller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants