Created
December 14, 2014 04:50
-
-
Save nemith/11bbb4c7a16c1a1e25dc to your computer and use it in GitHub Desktop.
input
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
| /* comment */ | |
| modifier: keyword value2 value3 value4; | |
| statement2; | |
| statement3 value; | |
| section { | |
| statement4; | |
| section 2 { | |
| statement5 value5; | |
| } | |
| } |
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
| bbennett ~ go run test.go | |
| (tokenBlockComment) '/* comment */' | |
| (tokenModifier) 'modifier' | |
| (tokenKeyword) 'keyword' | |
| (tokenValue) 'value2' | |
| (tokenValue) 'value3' | |
| (tokenValue) 'value4' | |
| (tokenEndStatement) ';' | |
| (tokenKeyword) 'statement2' | |
| (tokenEndStatement) ';' | |
| (tokenKeyword) 'statement3' | |
| (tokenValue) 'value' | |
| (tokenEndStatement) ';' | |
| (tokenKeyword) 'section' | |
| (tokenValue) '' | |
| (tokenSectionStart) '{' | |
| (tokenKeyword) 'statement4' | |
| (tokenEndStatement) ';' | |
| (tokenKeyword) 'section' | |
| (tokenValue) '2' | |
| (tokenValue) '' | |
| (tokenSectionStart) '{' | |
| (tokenKeyword) 'statement5' | |
| (tokenValue) 'value5' | |
| (tokenEndStatement) ';' | |
| (tokenSectionEnd) '}' | |
| (tokenSectionEnd) '}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment