P is a language for asynchronous event-driven programming. P allows the programmer to specify the system as a collection of interacting state machines, which communicate with each other using events. P unifies modeling and programming into one activity for the programmer. Not only can a P program be compiled into executable code, but it can also be validated using systematic testing. P has been used to implement and validate the USB device driver stack that ships with Microsoft Windows 8 and Windows Phone. P is also suitable for the design and implementation of networked, embedded, and distributed systems.
Check the P manual !
Information for building P framework is available here.
- [P: Safe asynchronous event-driven programming] (http://research.microsoft.com/pubs/191069/pldi212_desai.pdf), ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI), 2013.