Libraryless. Click here for Pure Java version (2531L/16K).
1 | svoid test_javaTok_onReader() { |
2 | S s = "Hello /* comment */ world. \"String\" 'c' '\\u1234' 123 [[hello\n]] [=[long]= ]=]"; |
3 | Producer<S> p = javaTok_onReader(new BufferedReader(new StringReader(s))); |
4 | S t; |
5 | new LS tok; |
6 | while ((t = p.next()) != null) { |
7 | tok.add(t); |
8 | print(quote(t)); |
9 | } |
10 | assertEquals(tok, javaTok(s)); |
11 | print("OK"); |
12 | } |
Began life as a copy of #1005982
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027366 |
Snippet name: | test_javaTok_onReader |
Eternal ID of this version: | #1027366/1 |
Text MD5: | ff09097ba5ce0287707b724eb74bfa9c |
Transpilation MD5: | 5b946012f6a26ea90c7f9e02892b384c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-15 14:48:41 |
Source code size: | 359 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 170 / 244 |
Referenced in: | [show references] |