Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- class Karloff {}
- class Main {}
- class Vardecl {
- }
- class Exp {}
- class Expression extends Exp {
- }
- class Num extends Exp {
- }
- class Var extends Exp {
- }
- class FunctionCallExp extends Exp {
- }
- class Bool extends Exp {
- }
- class Command {}
- class Assignment extends Command {
- }
- class FunctionCall extends Command {
- }
- class If extends Command {
- }
- class While extends Command {
- }
- class Repeat extends Command {
- }
- class Return extends Command {
- }
- class Output extends Command {
- }
- class Input extends Command {
- }
- public class KarloffTranslator {
- ArrayList<Command> comandos;
- KarloffTranslator(ArrayList<Command> comandos) {
- this.comandos = comandos;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement