Libraryless. Click here for Pure Java version (692L/5K/17K).
!752 static S rulesID = "#1002329"; static O parser; p { parser = run("#1002369"); parse("class bla {}"); parse("static class bla<S, S> { String aVar; S x() { return \"bla\"; } }"); parse("CLASS bla {}"); // wrong case } static void parse(S text) { print(">> " + text + " <<"); O result = call(parser, "parse", text, rulesID); L<S> classes = cast call(result, "fullMatchClasses"); print("Matched classes: " + structure(classes)); printStructure(get(parser, "recog")); print(); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002326 |
Snippet name: | Test Java Parsing |
Eternal ID of this version: | #1002326/1 |
Text MD5: | e47acba4239ab874dfa5f0d636a9ba96 |
Transpilation MD5: | 970337881bc4434362ca67e03db0c3b1 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-01-15 20:57:00 |
Source code size: | 530 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 694 / 849 |
Referenced in: | #1002384 - Chase Java Parsing explist_opt bug #3000189 - Answer for stefanreich(>> t bla) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |