From cbfc88790b27d31ecd58590db502a09b6f0cac7a Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Sat, 5 Sep 2015 14:03:22 -0500 Subject: Adds example API notation file for testing --- example-syntax.api | 19 +++++++++++++++++++ 1 file changed, 19 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..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 ) -- cgit