aboutsummaryrefslogtreecommitdiff
path: root/example-syntax.api
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2019-02-05 22:32:01 +0100
committerBen Beltran <ben@nsovocal.com>2019-02-05 22:32:01 +0100
commit87d6a1eea2a2a114e65b912fe6cbda5ba3d5fe5b (patch)
treee6b112f63fcfc76956da888b350e91284ed75759 /example-syntax.api
parent4549164147a331c583651f87d3d0490eb0a0397f (diff)
parent72beb828484a686f2ae318a2054ce0435ff82b26 (diff)
Merge branch 'feature/rbdr-initial-development' into develop
Diffstat (limited to 'example-syntax.api')
-rw-r--r--example-syntax.api19
1 files changed, 19 insertions, 0 deletions
diff --git a/example-syntax.api b/example-syntax.api
new file mode 100644
index 0000000..8c52870
--- /dev/null
+++ b/example-syntax.api
@@ -0,0 +1,19 @@
+HypotheticalModule <IModuleInterface>
+ +staticProperty <String>
+ +anotherStaticProperty <Boolean>
+ ::toggleAnotherStaticProperty()
+ ::setStaticProperty(newValue <String>)
+ -instanceProperty <Number>
+ -anotherInstanceProperty <String>
+ #instanceMethodSync([optionalParameter]<Boolean>) => resultOfCall <String>
+ #instanceMethodAsync(someValue <Number>, [callback] <Function>) ->(error <String|null>, result <Number|null>)
+
+
+// Comment
+EventHypotheticalClass
+ +>AnotherClass<+staticEventToListen(eventData <PredefinedObject>) // More Comments
+ <+staticEventDispatched(someData <SomeData>)
+ ~>listenedSocketEvent(eventData <SomeObject>)
+ <~dispatchedSocketEvent(eventData <BlaBla>)
+ ->AnotherClass<-instanceEventToListen(eventData <Object>)
+ <-instanceEventDispatched(specificDataType <DefinedObject>)