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

124
LINES

< > BotCompany Repo | #1006122 // Backup of original #1 - Java lexing (level 1) - declarations

TB declarations

1  
1. comment("java-lexing")
2  
3  
2. example(
4  
input=>>
5  
package net.luaos.tb.tb01.crispengine.solving;
6  
7  
import net.luaos.tb.tb01.crispengine.Solution;
8  
9  
public interface SolutionCollector {
10  
  public void addSolution(Solution solution);
11  
}
12  
<<, output=
13  
>>package
14  
net
15  
.
16  
luaos
17  
.
18  
tb
19  
.
20  
tb01
21  
.
22  
crispengine
23  
.
24  
solving
25  
;
26  
import
27  
net
28  
.
29  
luaos
30  
.
31  
tb
32  
.
33  
tb01
34  
.
35  
crispengine
36  
.
37  
Solution
38  
;
39  
public
40  
interface
41  
SolutionCollector
42  
{
43  
public
44  
void
45  
addSolution
46  
(
47  
Solution
48  
solution
49  
)
50  
;
51  
}<<)
52  
53  
3. example(
54  
input=>>
55  
package tb;
56  
57  
import net.luaos.tb.tb01.crispengine.Solution;
58  
59  
public class sol_id extends Solution {
60  
  public String compute(String input) {
61  
    return input;
62  
  }
63  
}
64  
<<, output=
65  
>>package
66  
tb
67  
;
68  
import
69  
net
70  
.
71  
luaos
72  
.
73  
tb
74  
.
75  
tb01
76  
.
77  
crispengine
78  
.
79  
Solution
80  
;
81  
public
82  
class
83  
sol_id
84  
extends
85  
Solution
86  
{
87  
public
88  
String
89  
compute
90  
(
91  
String
92  
input
93  
)
94  
{
95  
return
96  
input
97  
;
98  
}
99  
}<<)
100  
101  
4. secret-example(
102  
input=>>
103  
package prophecy.common;
104  
105  
public interface Freezable {
106  
  public FrozenObject freeze();
107  
}
108  
<<, output=
109  
>>package
110  
prophecy
111  
.
112  
common
113  
;
114  
public
115  
interface
116  
Freezable
117  
{
118  
public
119  
FrozenObject
120  
freeze
121  
(
122  
)
123  
;
124  
}<<)

Author comment

Began life as a copy of #1

download  show line numbers   

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

No comments. add comment

Snippet ID: #1006122
Snippet name: Backup of original #1 - Java lexing (level 1) - declarations
Eternal ID of this version: #1006122/1
Text MD5: e75c1601ad30c45aed2be21e9dd57f56
Author: stefan
Category:
Type: TB declarations
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-20 00:15:48
Source code size: 1171 bytes / 124 lines
Pitched / IR pitched: No / No
Views / Downloads: 569 / 178
Referenced in: [show references]