RTokenConstants.java 987 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package de.jplag.rlang;
  2. import de.jplag.TokenConstants;
  3. /**
  4. * Tokens in R that are deemed important when comparing submissions for plagiarisms. Based on an R frontend for JPlag
  5. * v2.15 by Olmo Kramer, see their <a href="https://github.com/CodeGra-de/jplag/tree/master/jplag.frontend.R">JPlag
  6. * fork</a>.
  7. * @author Robin Maisch
  8. */
  9. public interface RTokenConstants extends TokenConstants {
  10. int BEGIN_FUNCTION = 2;
  11. int END_FUNCTION = 3;
  12. int FUNCTION_CALL = 4;
  13. int NUMBER = 5;
  14. int STRING = 6;
  15. int BOOL = 7;
  16. int ASSIGN = 8;
  17. int ASSIGN_FUNC = 9;
  18. int ASSIGN_LIST = 10;
  19. int HELP = 11;
  20. int INDEX = 12;
  21. int PACKAGE = 13;
  22. int IF_BEGIN = 14;
  23. int IF_END = 15;
  24. int FOR_BEGIN = 16;
  25. int FOR_END = 17;
  26. int WHILE_BEGIN = 18;
  27. int WHILE_END = 19;
  28. int REPEAT_BEGIN = 20;
  29. int REPEAT_END = 21;
  30. int NEXT = 22;
  31. int BREAK = 23;
  32. int COMPOUND_BEGIN = 24;
  33. int COMPOUND_END = 25;
  34. int NUM_DIFF_TOKENS = 26;
  35. }