Libraryless. Click here for Pure Java version (2531L/16K).
svoid test_javaTok_onReader() { S s = "Hello /* comment */ world. \"String\" 'c' '\\u1234' 123 [[hello\n]] [=[long]= ]=]"; Producer<S> p = javaTok_onReader(new BufferedReader(new StringReader(s))); S t; new LS tok; while ((t = p.next()) != null) { tok.add(t); print(quote(t)); } assertEquals(tok, javaTok(s)); print("OK"); }
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: | 375 / 495 |
| Referenced in: | [show references] |