It is done auto-magically.ĪPML and AP-to-blocks converter. You don't have to do anything to make the blocks gray. IF, REPEAT, PROCEDURE, FOR - The interpreter will recognize these keywords and make the block be shaded in gray.| value/expr | - Square Rectangle - used for arguments, parameters and some expressions.( condition ) - Oval - used by conditions and conditional expressions. - Rounded Rectangle - used by most ap-style statements.There are really only 6 special characters: ( ) | <- (square brackets, parentheses, pipes, and left-arrow). You type ASCII text in the input box and special characters are interpreted to draw AP-style blocks. Think of apml as a weird hybrid a drawing tool. If AP pseudocode doesn't convert nicely, just switch to APML and do the formatting by hand.įirst, APML is completely made up.by me.for purposes of this app. It does a pretty good job in most circumstances but you might notice little artifacts get introduced along the way. The code that process the AP pseudocode into APML and vice versa is not robust (and under the hood extremely finiky). Mileage may vary on toggling back and forth between AP pseudocode and APML You'll need the blockStyles.css file that accompanies it. You can also easily copy out the HTML - the same code that is rendered on the screen - for use on your own site. The main thing you might want is to screen-cap an image of the code for use on handouts, quizzes, etc. With this tool you can quickly construct AP-style block code. Drawing the blocks is anoying so this helps you automate it to some degree. Writing the text-based form of AP pseduocode is easy. Consider this as freedom from constraints. Basically, it will let you write incorrect code. It will NOT ensure you write valid AP-style pseudocode or blocks. This is NOT an AP pseudocode complier, validator, coding environment, or any other thing that might lead you to believe this is doing something beyond drawing pretty picutres on the screen. A hacked together janky string parser that lets you dictate how and where AP CSP-style blocks are drawn by converting from AP CSP Pseudocode, or from using a markup language that I made up and am calling APML - AP Markup Language.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |