Advertisement
KDOXG

Karloff Translator

Sep 21st, 2022 (edited)
1,172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.80 KB | None | 0 0
  1. import java.util.ArrayList;
  2.  
  3. class Karloff {}
  4.  
  5. class Main {}
  6.  
  7. class Vardecl {
  8.  
  9. }
  10.  
  11. class Exp {}
  12.  
  13. class Expression extends Exp {
  14.  
  15. }
  16.  
  17. class Num extends Exp {
  18.  
  19. }
  20.  
  21. class Var extends Exp {
  22.  
  23. }
  24.  
  25. class FunctionCallExp extends Exp {
  26.  
  27. }
  28.  
  29. class Bool extends Exp {
  30.  
  31. }
  32.  
  33. class Command {}
  34.  
  35. class Assignment extends Command {
  36.    
  37. }
  38.  
  39. class FunctionCall extends Command {
  40.    
  41. }
  42.  
  43. class If extends Command {
  44.    
  45. }
  46.  
  47. class While extends Command {
  48.    
  49. }
  50.  
  51. class Repeat extends Command {
  52.    
  53. }
  54.  
  55. class Return extends Command {
  56.    
  57. }
  58.  
  59. class Output extends Command {
  60.    
  61. }
  62.  
  63. class Input extends Command {
  64.    
  65. }
  66.  
  67. public class KarloffTranslator {
  68.     ArrayList<Command> comandos;
  69.  
  70.     KarloffTranslator(ArrayList<Command> comandos) {
  71.         this.comandos = comandos;
  72.     }
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement