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

53
LINES

< > BotCompany Repo | #1024259 // ALQL AST: ALQLLine, ALQLReturn, ALQLTriple, ALQLLockStatement, ...

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2398L/15K).

1  
abstract sclass ALQLLine {
2  
  toString { ret stdToString(this); }
3  
}
4  
5  
sclass ALQLReturn > ALQLLine {
6  
  S var;
7  
  
8  
  *() {}
9  
  *(S *var) {}
10  
  
11  
  [stdEq]
12  
}
13  
14  
static record ALQLReturnTuple(LS vars) extends ALQLLine {}
15  
16  
sclass ALQLTriple > ALQLLine {
17  
  T3S triple;
18  
  
19  
  *() {}
20  
  *(T3S *triple) {}
21  
  *(S a, S b, S c) { triple = t3(a, b, c); }
22  
  
23  
  [stdEq]
24  
}
25  
26  
sclass ALQLLockStatement > ALQLLine {
27  
  T3S triple;
28  
  
29  
  *() {}
30  
  *(T3S *triple) {}
31  
  *(S a, S b, S c) { triple = t3(a, b, c); }
32  
  
33  
  [stdEq]  
34  
}
35  
36  
sclass ALQLPage > ALQLLine {
37  
  S page, matchMethod;
38  
  
39  
  *() {}
40  
  *(S *page, S *matchMethod) {}
41  
  
42  
  [stdEq]
43  
}
44  
45  
sclass ALQLSlice > ALQLLine {
46  
  S slice;
47  
  L<ALQLLine> contents;
48  
49  
  *() {}
50  
  *(S *slice, L<ALQLLine> *contents) {}
51  
  
52  
  [stdEq]
53  
} 

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024259
Snippet name: ALQL AST: ALQLLine, ALQLReturn, ALQLTriple, ALQLLockStatement, ...
Eternal ID of this version: #1024259/17
Text MD5: c5248e480d13502d9c21130040ccaac5
Transpilation MD5: 69bf2fead13d39eaea7a6039523624ad
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-03 16:56:53
Source code size: 790 bytes / 53 lines
Pitched / IR pitched: No / No
Views / Downloads: 266 / 709
Version history: 16 change(s)
Referenced in: [show references]