Skip to content
Discussion options

You must be logged in to vote

It depends. We use different means of parsing files of programming languages. For many languages, we use ANTLR grammars.
When the ANTLR grammar fails to parse a program (e.g., due to a syntax error), it may still return an incorrect parse tree, and JPlag can still (partially) check that program for plagiarism.

However, if a program cannot be parsed at all, this particular program will then be omitted.

For example, consider these two programs:

If I now introduce a syntax error in line 19 (remove bracket, mistype print):

Note that due to the incorrect parsing, some code can no langer be matched. However, it is not the changed line (19), it is a later part of the program. The reason is, th…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tsaglam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question A question, so neither a bug nor a enhancement proposal.
2 participants
Converted from issue

This discussion was converted from issue #2267 on March 31, 2025 08:00.