Last active
December 30, 2015 12:09
-
-
Save danking/7827447 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (struct: (state StackPeek InputPeek Stack Input) | |
| ([name : String] | |
| [description : String] | |
| [id : Natural] | |
| [transition-table : [TT StackPeek InputPeek Stack Input]] | |
| [predecessors : [Setof (state StackPeek InputPeek Stack Input)]])) | |
| (define-type [State StackPeek InputPeek Stack Input] | |
| (state StackPeek InputPeek Stack Input)) | |
| (struct: (pda-instance StackPeek InputPeek Stack Input) | |
| ([state : (State StackPeek InputPeek Stack Input)] | |
| [stack : Stack] | |
| [input : Input])) | |
| (define-type (PDAInstance StackPeek InputPeek Stack Input) | |
| (pda-instance StackPeek InputPeek Stack Input)) | |
| (define-type [TT StackPeek InputPeek Stack Input] | |
| [Hash [List StackPeek InputPeek] | |
| [Stack Input -> (PDAInstance StackPeek | |
| InputPeek | |
| Stack | |
| Input)]]) | |
| (: runPDA : (All (StackPeek InputPeek Stack Input) | |
| ([PDAInstance StackPeek InputPeek Stack Input] | |
| StackPeeker | |
| InputPeeker | |
| -> | |
| [PDAInstance StackPeek InputPeek Stack Input]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment