From: Ben Beltran Date: Sat, 5 Sep 2015 19:03:22 +0000 (-0500) Subject: Adds example API notation file for testing X-Git-Tag: v1.0.0~8 X-Git-Url: https://git.r.bdr.sh/rbdr/api-notation-atom/commitdiff_plain/cbfc88790b27d31ecd58590db502a09b6f0cac7a?hp=52942a9aaf674980c47e1d074466a3d833decc38 Adds example API notation file for testing --- 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 + +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 )