SleelaDoc API
HTML documentation for the SLeeLa standard library (/lib)
Home › Packages › examples

Package examples

This package contains 79 source unit(s) defining 89 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

ADVANCED-anchored-classes #sleela 1.7 (lib/examples/regex/ADVANCED-anchored-classes.sleela)

ADVAnchoredClasses class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
isDigitboolean isDigit(int c)No description in source.
isLowerboolean isLower(int c)No description in source.
isUpperboolean isUpper(int c)No description in source.
isAlphaboolean isAlpha(int c)No description in source.
isUnderboolean isUnder(int c)No description in source.
isDigitsboolean isDigits(int[] t)^[0-9]+$
isIdentifierboolean isIdentifier(int[] t)^[A-Za-z_][A-Za-z0-9_]*$
mainvoid main()No description in source.

ADVANCED-app #sleela 1.7 (lib/examples/xlt/ADVANCED-app.sleela)

AdvancedApp class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
logActivityvoid logActivity()No description in source.
settleLedgerint settleLedger()No description in source.
mainvoid main()No description in source.

ADVANCED-dirty-rects #sleela 1.7 (lib/examples/ballum/ADVANCED-dirty-rects.sleela)

Rect class

No public fields or methods detected (the unit may be a facade or a pure contract).

AdvancedDirtyRects class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
dirtystatic Rect[] dirtyNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
makeRect make(int x, int y, int w, int h)No description in source.
mainvoid main()No description in source.

ADVANCED-disassemble-stream #sleela 1.7 (lib/examples/decompiler/ADVANCED-disassemble-stream.sleela)

AdvancedDisassembleStream class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mnemonicString mnemonic(int op)No description in source.
hasOperandboolean hasOperand(int op)Does this opcode consume a following operand byte?
mainvoid main()No description in source.

ADVANCED-grid-layout #sleela 1.7 (lib/examples/gui/ADVANCED-grid-layout.sleela)

ADVGridLayout class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

ADVANCED-invariant-harness #sleela 1.7 (lib/examples/debugger/ADVANCED-invariant-harness.sleela)

AdvancedInvariantHarness class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
passedstatic int passedNo description in source.
failedstatic int failedNo description in source.
firstFailurestatic String firstFailureNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
expectvoid expect(String label, boolean condition)Record one named check.
triangularint triangular(int n)The function under test (contains a deliberate off-by-one style bug for the demo: it returns n*(n+1)/2 but we also assert a wrong expectation to show how a failing invariant is surfaced).
mainvoid main()No description in source.

ADVANCED-layer-takeoff #sleela 1.7 (lib/examples/autocad/ADVANCED-layer-takeoff.sleela)

Entity class

No public fields or methods detected (the unit may be a facade or a pure contract).

AdvancedLayerTakeoff class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
drawingstatic Entity[] drawingNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
makeEntity make(int layer, double area)No description in source.
mainvoid main()No description in source.

ADVANCED-main-class-resolution #sleela 1.7 (lib/examples/java/ADVANCED-main-class-resolution.sleela)

AdvancedMainClassResolution class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
resolveString resolve(String cliMain, String manifestMain)Decide the launch target. Empty string ("") means "not provided".
reportvoid report(String label, String cliMain, String manifestMain)No description in source.
mainvoid main()No description in source.

ADVANCED-manifest-verify-sim #sleela 1.7 (lib/examples/crypto/ADVANCED-manifest-verify-sim.sleela)

Entry class

No public fields or methods detected (the unit may be a facade or a pure contract).

AdvancedManifestVerifySim class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
manifeststatic Entry[] manifestNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
rowEntry row(String name, String trusted, String measured)No description in source.
mainvoid main()No description in source.

ADVANCED-nonoverlap-plan #sleela 1.7 (lib/examples/wifi/ADVANCED-nonoverlap-plan.sleela)

AP class

No public fields or methods detected (the unit may be a facade or a pure contract).

ADVNonoverlapPlan class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
planstatic AP[] planNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
apAP ap(String name, int channel)No description in source.
gapint gap(int a, int b)No description in source.
mainvoid main()No description in source.

ADVANCED-processing-gain-capacity #sleela 1.7 (lib/examples/cdma/ADVANCED-processing-gain-capacity.sleela)

AdvancedProcessingGainCapacity class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
gainDbdouble gainDb(int ratio)log10 for exact powers/ratios we use here, via a small lookup. Returns dB = 10*log10(ratio) for the handful of ratios in this demo.
mainvoid main()No description in source.

ADVANCED-producer-consumer #sleela 1.7 (lib/examples/runtime/ADVANCED-producer-consumer.sleela)

AdvancedProducerConsumer class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
ITEMSstatic int ITEMS = 12No description in source.
CONSUMERSstatic int CONSUMERS = 4No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
producerstatic void producer()Produce ITEMS values (1..ITEMS) into mailbox slot 1.
consumerstatic void consumer()Each consumer pulls exactly ITEMS/CONSUMERS items (even split) and folds their squares into the shared total.
mainstatic void main()No description in source.

ADVANCED-progress-bar #sleela 1.7 (lib/examples/terminal/ADVANCED-progress-bar.sleela)

AdvancedProgressBar class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
barString bar(int filled)Build a bar string with `filled` '#' cells and the rest as '-'.
mainvoid main()No description in source.

ADVANCED-request-response-protocol #sleela 1.7 (lib/examples/network/ADVANCED-request-response-protocol.sleela)

AdvancedRequestResponse class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
PORTstatic int PORT = 45231No description in source.
listenerstatic int listenerNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
replystatic String reply(String request)Decide a reply for one request line. (String has ==/!= only at 1.7, so we match the two fixed verbs and treat anything with an ECHO prefix by comparing against the known full commands this demo sends.)
serverstatic void server()Server: accept three connections, answer each, then return.
callstatic String call(String request)Client: one request/response round trip.
mainstatic void main()No description in source.

ADVANCED-retry-backoff #sleela 1.7 (lib/examples/connector/ADVANCED-retry-backoff.sleela)

AdvancedRetryBackoff class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

ADVANCED-Service #sleela 1.7 (lib/examples/nordshrift/ADVANCED-Service.sleela)

Service class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

ADVANCED-ServiceDraft #sleela 1.7 (lib/examples/nordshrift/ADVANCED-ServiceDraft.sleela)

ServiceDraft class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
scratchint scratch()No description in source.

BASIC-artifact-inspection #sleela 1.7 (lib/examples/decompiler/BASIC-artifact-inspection.sleela)

BasicArtifactInspection class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

BASIC-channel-frequency #sleela 1.7 (lib/examples/wifi/BASIC-channel-frequency.sleela)

BasicChannelFrequency class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
centerMhzint centerMhz(int channel)No description in source.
mainvoid main()No description in source.

BASIC-clamp-to-parent #sleela 1.7 (lib/examples/gui/BASIC-clamp-to-parent.sleela)

BasicClampToParent class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

BASIC-connector-lifecycle #sleela 1.7 (lib/examples/connector/BASIC-connector-lifecycle.sleela)

BasicConnectorLifecycle class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

BASIC-debugging-checklist #sleela 1.7 (lib/examples/debugger/BASIC-debugging-checklist.sleela)

BasicDebuggingChecklist class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

BASIC-endpoint-validation #sleela 1.7 (lib/examples/network/BASIC-endpoint-validation.sleela)

BasicEndpointValidation class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
validateint validate(String host, int port)0 = ok, otherwise a reason code.
reportvoid report(String host, int port)No description in source.
mainvoid main()No description in source.

BASIC-frame-metrics #sleela 1.7 (lib/examples/ballum/BASIC-frame-metrics.sleela)

BasicFrameMetrics class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

BASIC-geometry-area #sleela 1.7 (lib/examples/autocad/BASIC-geometry-area.sleela)

BasicGeometryArea class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

BASIC-Greeter #sleela 1.7 (lib/examples/nordshrift/BASIC-Greeter.sleela)

Greeter class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

BASIC-integrity-workflow #sleela 1.7 (lib/examples/crypto/BASIC-integrity-workflow.sleela)

BasicIntegrityWorkflow class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

BASIC-launch-preflight #sleela 1.7 (lib/examples/java/BASIC-launch-preflight.sleela)

BasicLaunchPreflight class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

BASIC-link-budget #sleela 1.7 (lib/examples/cdma/BASIC-link-budget.sleela)

BasicLinkBudget class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

BASIC-literal-match #sleela 1.7 (lib/examples/regex/BASIC-literal-match.sleela)

BasicLiteralMatch class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
equalsboolean equals(int[] a, int[] b)True when the two code arrays are equal element by element.
mainvoid main()No description in source.

BASIC-menu #sleela 1.7 (lib/examples/terminal/BASIC-menu.sleela)

BasicMenu class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

BASIC-sequential-accumulate #sleela 1.7 (lib/examples/runtime/BASIC-sequential-accumulate.sleela)

BasicSequentialAccumulate class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

CLASSIC-artifact-inspection #sleela 1.7 (lib/examples/decompiler/CLASSIC-artifact-inspection.sleela)

ClassicArtifactInspection class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

CLASSIC-connector-lifecycle #sleela 1.7 (lib/examples/connector/CLASSIC-connector-lifecycle.sleela)

ClassicConnectorLifecycle class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

CLASSIC-debugging-checklist #sleela 1.7 (lib/examples/debugger/CLASSIC-debugging-checklist.sleela)

ClassicDebuggingChecklist class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

CLASSIC-display-frame #sleela 1.7 (lib/examples/ballum/CLASSIC-display-frame.sleela)

ClassicDisplayFrame class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

CLASSIC-geometry-primitives #sleela 1.7 (lib/examples/autocad/CLASSIC-geometry-primitives.sleela)

ClassicGeometryPrimitives class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

CLASSIC-hash-integrity-workflow #sleela 1.7 (lib/examples/crypto/CLASSIC-hash-integrity-workflow.sleela)

ClassicHashIntegrityWorkflow class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

CLASSIC-hello-world #sleela 1.7 (lib/examples/sleela/CLASSIC-hello-world.sleela)

ClassicHelloWorld class

No public fields or methods detected (the unit may be a facade or a pure contract).

CLASSIC-java-launch-preflight #sleela 1.7 (lib/examples/java/CLASSIC-java-launch-preflight.sleela)

ClassicJavaLaunchPreflight class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

CLASSIC-layout-bounds #sleela 1.7 (lib/examples/gui/CLASSIC-layout-bounds.sleela)

ClassicLayoutBounds class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

CLASSIC-Ledgerize #sleela 1.7 (lib/examples/nordshrift/CLASSIC-Ledgerize.sleela)

Ledgerize class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sumWindowint sumWindow(int completed, int window)No description in source.
mainvoid main()No description in source.

CLASSIC-link-budget #sleela 1.7 (lib/examples/cdma/CLASSIC-link-budget.sleela)

ClassicCdmaLinkBudget class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

CLASSIC-terminal-menu #sleela 1.7 (lib/examples/terminal/CLASSIC-terminal-menu.sleela)

ClassicTerminalMenu class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

DRAFT-literal-find #sleela 1.7 (lib/examples/regex/DRAFT-literal-find.sleela)

DraftLiteralFind class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

MODERATE-aligned-table #sleela 1.7 (lib/examples/terminal/MODERATE-aligned-table.sleela)

ModerateAlignedTable class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
padToString padTo(String text, int textLen, int width)Right-pad `text` with spaces to at least `width` characters. (We approximate "length" by rebuilding: pad until we have added enough.)
mainvoid main()No description in source.

MODERATE-App #sleela 1.7 (lib/examples/nordshrift/MODERATE-App.sleela)

ModerateApp class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
dailyint daily(int perHour)No description in source.
mainvoid main()No description in source.

MODERATE-bisect-regression #sleela 1.7 (lib/examples/debugger/MODERATE-bisect-regression.sleela)

ModerateBisectRegression class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
isBadboolean isBad(int rev)The oracle a real bisect would run: is this revision broken?
mainvoid main()No description in source.

MODERATE-checksum-not-crypto #sleela 1.7 (lib/examples/crypto/MODERATE-checksum-not-crypto.sleela)

ModerateChecksumNotCrypto class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
checksum8int checksum8(int[] bytes)Sum the bytes modulo 256 -> a single-byte "checkword". Order-insensitive, collision-prone: exactly why it is not a security primitive.
mainvoid main()No description in source.

MODERATE-classpath-resolution #sleela 1.7 (lib/examples/java/MODERATE-classpath-resolution.sleela)

Entry class

No public fields or methods detected (the unit may be a facade or a pure contract).

ModerateClasspathResolution class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
classpathstatic Entry[] classpathNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
entryEntry entry(String root, String provides)No description in source.
resolveString resolve(String className)Return the root that first provides the class, or "NOT FOUND".
mainvoid main()No description in source.

MODERATE-fit-and-letterbox #sleela 1.7 (lib/examples/ballum/MODERATE-fit-and-letterbox.sleela)

ModerateFitAndLetterbox class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

MODERATE-link-margin #sleela 1.7 (lib/examples/cdma/MODERATE-link-margin.sleela)

ModerateLinkMargin class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

MODERATE-polyline-bounds #sleela 1.7 (lib/examples/autocad/MODERATE-polyline-bounds.sleela)

Vertex class

No public fields or methods detected (the unit may be a facade or a pure contract).

ModeratePolylineBounds class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
pathstatic Vertex[] pathNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
absdouble abs(double v)Absolute value helper: SLeeLa 1.7 has no math intrinsics, so we spell it out.
atVertex at(double x, double y)No description in source.
mainvoid main()No description in source.

MODERATE-Report #sleela 1.7 (lib/examples/nordshrift/MODERATE-Report.sleela)

ModerateReport class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

MODERATE-section-table #sleela 1.7 (lib/examples/decompiler/MODERATE-section-table.sleela)

Section class

No public fields or methods detected (the unit may be a facade or a pure contract).

ModerateSectionTable class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
sectionsstatic Section[] sectionsNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
secSection sec(String name, int offset, int size)No description in source.
mainvoid main()No description in source.

MODERATE-security-policy #sleela 1.7 (lib/examples/wifi/MODERATE-security-policy.sleela)

ModerateSecurityPolicy class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
OPENstatic int OPEN = 0Security ranks (higher = stronger).
WEPstatic int WEP = 1No description in source.
WPAstatic int WPA = 2No description in source.
WPA2static int WPA2 = 3No description in source.
WPA3static int WPA3 = 4No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
evaluateint evaluate(int rank)0 = allowed, otherwise a reason code.
reportvoid report(String ssid, int rank)No description in source.
mainvoid main()No description in source.

MODERATE-stack-layout #sleela 1.7 (lib/examples/gui/MODERATE-stack-layout.sleela)

ModerateStackLayout class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

MODERATE-state-machine #sleela 1.7 (lib/examples/connector/MODERATE-state-machine.sleela)

ModerateStateMachine class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
NEWstatic int NEW = 0States
CONFIGUREDstatic int CONFIGURED = 1No description in source.
OPENstatic int OPEN = 2No description in source.
CLOSEDstatic int CLOSED = 3No description in source.
FAILEDstatic int FAILED = 4No description in source.
statestatic int stateNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
nameString name(int s)No description in source.
configureint configure()Each transition guards its precondition and returns the new state.
openint open()No description in source.
requestCloseint requestClose()No description in source.
mainvoid main()No description in source.

MODERATE-wildcard-match #sleela 1.7 (lib/examples/regex/MODERATE-wildcard-match.sleela)

ModerateWildcardMatch class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
matchboolean match(int[] text, int[] pat)No description in source.
mainvoid main()No description in source.

NEW-bestof-route #sleela 2.1 (lib/examples/sleela/NEW-bestof-route.sleela)

BestOfRoute class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

NEW-dynamic-arrays #sleela 1.7 (lib/examples/sleela/NEW-dynamic-arrays.sleela)

NewDynamicArrays class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

NEW-file-pipes #sleela 2.1 (lib/examples/sleela/NEW-file-pipes.sleela)

FilePipes class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
readEndstatic int readEndNo description in source.
writeEndstatic int writeEndNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
writerstatic void writer()No description in source.
mainstatic void main()No description in source.

NEW-munction-file-reach #sleela 2.1 (lib/examples/sleela/NEW-munction-file-reach.sleela)

MunctionFileReach class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

NEW-native-financial-import #sleela 1.7 (lib/examples/sleela/NEW-native-financial-import.sleela)

NewFinancialImport class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

NEW-nested-classes #sleela 1.11 (lib/examples/sleela/NEW-nested-classes.sleela)

NewNestedClasses class

No public fields or methods detected (the unit may be a facade or a pure contract).

Label class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
valueString valueNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
displayString display()No description in source.

NEW-signed-wide-integers-2.7 #sleela 2.7 (lib/examples/sleela/NEW-signed-wide-integers-2.7.sleela)

NewSignedWideIntegers class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

NEW-static-protected-access #sleela 2.1 (lib/examples/sleela/NEW-static-protected-access.sleela)

ProtectedSystem class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

NEW-struct-network-transport #sleela 2.1 (lib/examples/sleela/NEW-struct-network-transport.sleela)

Order struct

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
symbolString symbolNo description in source.
sharesint sharesNo description in source.
limitdouble limitNo description in source.

StructNetworkTransport class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
listenerstatic int listenerNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
serverstatic void server()No description in source.
clientstatic String client()No description in source.
mainstatic void main()No description in source.

NEW-struct-record #sleela 1.7 (lib/examples/sleela/NEW-struct-record.sleela)

Point struct

No public fields or methods detected (the unit may be a facade or a pure contract).

NewStructRecord class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

NEW-synchro-measure #sleela 2.1 (lib/examples/sleela/NEW-synchro-measure.sleela)

SynchroMeasure class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

NEW-time-api #sleela 2.1 (lib/examples/sleela/NEW-time-api.sleela)

TimeApi class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

NEW-unsigned-wide-integers-2.8 #sleela 2.8 (lib/examples/sleela/NEW-unsigned-wide-integers-2.8.sleela)

NewUnsignedWideIntegers class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

ORIGINAL-fizz-buzz #sleela 1.7 (lib/examples/sleela/ORIGINAL-fizz-buzz.sleela)

OriginalFizzBuzz class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

USED-loopback-tcp-echo #sleela 1.7 (lib/examples/network/USED-loopback-tcp-echo.sleela)

NetworkEcho class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
listenerstatic int listenerNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
serverstatic void server()No description in source.
clientstatic String client()No description in source.
mainstatic void main()No description in source.

USED-methods-and-return-values #sleela 1.7 (lib/examples/sleela/USED-methods-and-return-values.sleela)

UsedMethods class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
squareint square(int value)No description in source.
mainvoid main()No description in source.

USED-short-circuit-guards #sleela 1.7 (lib/examples/sleela/USED-short-circuit-guards.sleela)

UsedShortCircuitGuards class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
isReadyboolean isReady(int value)No description in source.
mainvoid main()No description in source.

USED-switch-selection #sleela 1.7 (lib/examples/sleela/USED-switch-selection.sleela)

UsedSwitchSelection class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

USED-thread-workers #sleela 1.7 (lib/examples/runtime/USED-thread-workers.sleela)

ThreadWorkers class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
totalstatic int total = 0No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
workerstatic void worker()No description in source.
mainstatic void main()No description in source.

USED-wifi-policy-smoke #sleela 1.7 (lib/examples/wifi/USED-wifi-policy-smoke.sleela)

WifiPolicySmoke class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
runint run()No description in source.