scarpet v1.2

This commit is contained in:
gnembon committed 2019-05-16 14:11:39 -03:00
1 parent 723f863d98
commit 885f579d6c
34 files changed
+8786 -18

No files matched your search

@@ -0,0 +1,48 @@
package carpet.script.value;
import carpet.script.exception.ExpressionException;
import carpet.script.value.Value;
import java.util.List;
public class FunctionSignatureValue extends Value
{
private String identifier;
private List<String> arguments;
private List<String> globals;
@Override
public String getString()
{
throw new ExpressionException("Function "+identifier+" is not defined yet");
}
@Override
public boolean getBoolean()
{
throw new ExpressionException("Function "+identifier+" is not defined yet");
}
@Override
public Value clone()
{
throw new ExpressionException("Function "+identifier+" is not defined yet");
}
public FunctionSignatureValue(String name, List<String> args, List<String> globals)
{
this.identifier = name;
this.arguments = args;
this.globals = globals;
}
public String getName()
{
return identifier;
}
public List<String> getArgs()
{
return arguments;
}
public List<String> getGlobals() {return globals;}
}