Skip to content

Instantly share code, notes, and snippets.

View cdietrich's full-sized avatar

Christian Dietrich cdietrich

View GitHub Profile
public class MyProgram {
public static void main(String[] args) {
Program p = new Program();
doSomethingWith(o);
}
private static void doSomethingWith(Program p) {
p.name = "Just a Demo";
}
}
IniDCommand:
{IniDCommand}
'@D'(value=ANSS1TERM)?
;
terminal ALPHA :('a'..'z'|'A'..'Z');
terminal NUM:('0'..'9')+;
terminal SYMBOL : ('.'|','|'('|')'|'{'|'}'|'<'|'>'|'+'|'-'|'*'|'%'|'!'|'"'|':'|'|'|'?'|'#'|'_'|' '|'=');
class A {
var i : Int = 1
}
class B {
var a : A
init(a : A) {
self.a = a
}