Last active
August 29, 2015 14:11
-
-
Save nokok/d5761ef52bcfca790f58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type HogeType : SuperType <- Interface1 Interface2 Interface3 | |
#private | |
def zero : Int = 0 | |
def addOne : Int -> Int = (x) -> x + 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CompileUnit | |
TypeDeclaration | |
KaraffeIdentifier: HogeType | |
SuperType | |
KaraffeIdentifier: SuperType | |
Interfaces | |
KaraffeIdentifier: Interface1 | |
KaraffeIdentifier: Interface2 | |
KaraffeIdentifier: Interface3 | |
NewLineToken | |
ModifierStatement | |
PrivateModifier: private | |
NewLineToken | |
VariableOrFunctionDeclaration | |
KaraffeIdentifier: zero | |
VarTypeDecl | |
KaraffeIdentifier: Int | |
Expression | |
IntLiteral: 0 | |
NewLineToken | |
VariableOrFunctionDeclaration | |
KaraffeIdentifier: addOne | |
FuncTypeDecl | |
ArgumentTypes | |
KaraffeIdentifier: Int | |
ReturnType | |
KaraffeIdentifier: Int | |
Expression | |
FunctionLiteral | |
KaraffeIdentifier: x | |
SingleArrow | |
Expression | |
ExprNode | |
KaraffeIdentifier: x | |
Plus: + | |
IntLiteral: 1 | |
NewLineToken |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment