Commit aef06c4f authored by Allan MILHOMME's avatar Allan MILHOMME
Browse files

all alone

parent 228c18c5
......@@ -3,4 +3,5 @@ bin/**
.classpath
.project
/bin/
generatedBin/**
\ No newline at end of file
generatedBin/**
Test.java
\ No newline at end of file
void main(Array<String> args) {
Int i = 1.add(1);
System:.out.println(i.mul(5));
}
class List<T> extends Literal<T> {
Node<T> firstNode;
new [this.firstNode] {}
new [Array<T> values] {
var currentNode = Node.new();
var firstNode = currentNode;
for (Int i=0;i<values.Length;i++)
{
currentNode.value = values[i];
var nextNode = Node.new();
currentNode.after = nextNode;
nextNode.before = currentNode;
currentNode = nextNode;
}
this[firstNode];
}
}
class Node<T> extends Literal<T> {
T value;
Node<T> before;
Node<T> after;
new[this.value, this.before, this.after] {}
void main(Array<String> test)
{
System:.out.println("Passe");
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment