Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hel<b>lo[if foo]bar is [bar].[else]baz[end]world</b>!
- write('hel<b>lo')
- if('foo')
- write('bar is')
- substitute('bar')
- write('.')
- else()
- write('baz')
- end()
- write('world</b>!')
- * Sequence
- ** Write
- *** ('hel<b>lo')
- ** If
- *** ('foo')
- *** Sequence
- **** Write
- ***** ('bar is')
- **** Substitute
- ***** ('bar')
- **** Write
- ***** ('.')
- *** Write
- **** ('baz')
- ** Write
- *** ('world</b>!')
- class Instruction {
- }
- class Write : Instruction {
- string text;
- }
- class Substitute : Instruction {
- string varname;
- }
- class Sequence : Instruction {
- Instruction[] items;
- }
- class If : Instruction {
- string condition;
- Instruction then;
- Instruction else;
- }
Add Comment
Please, Sign In to add comment