Created
March 1, 2013 01:20
-
-
Save swarley/5061726 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
iex(1)> Lexer.PIR.tokenize("<<\"TEST\" <<\"SECOND_LEVEL\" <<'THIRD'\nthis probably won't work the first time\nTEST\nthis should go into SECOND_LEVEL\nSECOND_LEVEL\nthis almost certainly will not work\nTHIRD") | |
[ | |
{ | |
:str, | |
1, | |
'this probably won\'t work the first time\n' | |
}, | |
{ | |
:str, | |
1, | |
'this should go into SECOND_LEVEL\n' | |
}, | |
{ | |
:str, | |
1, | |
'this almost certainly will not work\n' | |
}, | |
{ | |
:newline, | |
1, | |
nil | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment