Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1005982 // Test javaTokC_onReader

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (968L/7K/22K).

!752

p-typewriter {
  S s = "Hello /* comment */ world. \"String\" 'c' '\\u1234' 123 [[hello\n]] [=[long]= ]=]";
  Producer<S> p = javaTokC_onReader(new BufferedReader(new StringReader(s)));
  S t;
  new L<S> tok;
  while ((t = p.next()) != null) {
    tok.add(t);
    print(quote(t));
  }
  assertEquals(tok, javaTokC(s));
  print("OK");
}

Author comment

Began life as a copy of #1005978

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005982
Snippet name: Test javaTokC_onReader
Eternal ID of this version: #1005982/1
Text MD5: 77cb482f37a8b2a82bbf173fb227528b
Transpilation MD5: 6458a39b951e923cedbc16e3fe29c931
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-13 18:28:01
Source code size: 354 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 585 / 716
Referenced in: [show references]