From d35a37a449d31e6f4b43b937abf7b0e1fc497828 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 16 Jun 2016 20:21:25 +0300 Subject: Grammar now uses reverse polish notation --- main/core/tokenizer/token/ArgumentInfo.java | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 main/core/tokenizer/token/ArgumentInfo.java (limited to 'main/core/tokenizer/token/ArgumentInfo.java') diff --git a/main/core/tokenizer/token/ArgumentInfo.java b/main/core/tokenizer/token/ArgumentInfo.java new file mode 100644 index 0000000..a9c3d90 --- /dev/null +++ b/main/core/tokenizer/token/ArgumentInfo.java @@ -0,0 +1,28 @@ +package com.jantuomi.interpreter.main.core.tokenizer.token; + +/** + * Created by jan on 15.6.2016. + */ +public class ArgumentInfo { + private int count = 0; + private boolean isVarargs = false; + public ArgumentInfo(int count) { + this.count = count; + } + + public ArgumentInfo() { + + } + + public void setVariable(boolean value) { + this.isVarargs = value; + } + + public boolean getVarargs() { + return isVarargs; + } + + public int getCount() { + return count; + } +} -- cgit v1.3