Created
January 21, 2016 14:55
-
-
Save sivabudh/286b5110e646e9387b11 to your computer and use it in GitHub Desktop.
This file contains 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
# Input: | |
data = ''' | |
undo traffic-policy inbound # regular statement | |
<% # command | |
module: create-variable | |
name: 'display blah' | |
%> | |
quit # regular statement | |
''' | |
# Output | |
output = [ # an array of... | |
'undo traffic-policy inbound', # first element is a plain string | |
{ # second element is a dictionary of attributes | |
'module': 'create-variable' | |
'name': 'display blah' | |
}, | |
'quit', # third element is a plain string | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment