Skip to content

Instantly share code, notes, and snippets.

@lucaswerkmeister
Created April 24, 2014 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucaswerkmeister/11269450 to your computer and use it in GitHub Desktop.
Save lucaswerkmeister/11269450 to your computer and use it in GitHub Desktop.
Additional info for ceylon/ceylon-spec#959
void run() {
// print("`` `module tmp`.name ``/`` `module tmp`.version ``");
print("```module tmp`.name``/```module tmp`.version``");
// print("`` `module tmp` ```` `module tmp` ``");
print("```module tmp``````module tmp```");
}
[@0,0:3='void',<131>,7:0]
[@1,4:4=' ',<133>,channel=99,7:4]
[@2,5:7='run',<69>,7:5]
[@3,8:8='(',<72>,7:8]
[@4,9:9=')',<101>,7:9]
[@5,10:10=' ',<133>,channel=99,7:10]
[@6,11:11='{',<66>,7:11]
[@7,12:16='\n ',<133>,channel=99,7:12]
[@8,17:80='// print("`` `module tmp`.name ``/`` `module tmp`.version ``");\n',<70>,channel=99,8:4]
[@9,81:84=' ',<133>,channel=99,9:0]
[@10,85:89='print',<69>,9:4]
[@11,90:90='(',<72>,9:9]
[@12,91:94='"```',<114>,9:10]
[@13,95:100='module',<75>,9:14]
[@14,101:101=' ',<133>,channel=99,9:20]
[@15,102:104='tmp',<69>,9:21]
[@16,105:105='`',<15>,9:24]
[@17,106:106='.',<74>,9:25]
[@18,107:110='name',<69>,9:26]
[@19,111:116='``/```',<113>,9:30]
[@20,117:122='module',<75>,9:36]
[@21,123:123=' ',<133>,channel=99,9:42]
[@22,124:126='tmp',<69>,9:43]
[@23,127:127='`',<15>,9:46]
[@24,128:128='.',<74>,9:47]
[@25,129:135='version',<69>,9:48]
[@26,136:138='``"',<111>,9:55]
[@27,139:139=')',<101>,9:58]
[@28,140:140=';',<106>,9:59]
[@29,141:145='\n ',<133>,channel=99,9:60]
[@30,146:195='// print("`` `module tmp` ```` `module tmp` ``");\n',<70>,channel=99,10:4]
[@31,196:199=' ',<133>,channel=99,11:0]
[@32,200:204='print',<69>,11:4]
[@33,205:205='(',<72>,11:9]
[@34,206:209='"```',<114>,11:10]
[@35,210:215='module',<75>,11:14]
[@36,216:216=' ',<133>,channel=99,11:20]
[@37,217:219='tmp',<69>,11:21]
[@38,220:223='````',<113>,11:24]
[@39,224:238='``module tmp```',<113>,11:28]
[@40,239:244='");\n}\n',<112>,11:43]
@lucaswerkmeister
Copy link
Author

Notable token types:

  • 114: STRING_START ([@12,91:94='"```',<114>,9:10], [@34,206:209='"```',<114>,11:10])
  • 15: BACKTICK ([@16,105:105='',<15>,9:24]`)
  • 113: STRING_MID ([@19,111:116='``/```',<113>,9:30], [@38,220:223='````',<113>,11:24])
  • 111: STRING_END ([@26,136:138='``"',<111>,9:55])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment