From 76da60c63cc6623c9da9929d01cc7cf3420bb031 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Sat, 5 Sep 2015 15:35:42 -0500 Subject: Adds example notation for testing --- example-syntax.api | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 example-syntax.api (limited to 'example-syntax.api') diff --git a/example-syntax.api b/example-syntax.api new file mode 100644 index 0000000..ecc4c3c --- /dev/null +++ b/example-syntax.api @@ -0,0 +1,18 @@ +HypotheticalModule + +staticProperty + +anotherStaticProperty + ::toggleAnotherStaticProperty() + ::setStaticProperty(newValue ) + -instanceProperty + -anotherInstanceProperty + #instanceMethodSync([optionalParameter]) => resultOfCall + #instanceMethodAsync(someValue , [callback] ) ->(error , result ) + +// Comment +EventHypotheticalClass + +>AnotherClass<+staticEventToListen(eventData ) // More Comments + <+staticEventDispatched(someData ) + ~>listenedSocketEvent(eventData ) + <~dispatchedSocketEvent(eventData ) + ->AnotherClass<-instanceEventToListen(eventData ) + <-instanceEventDispatched(specificDataType ) -- cgit