summaryrefslogtreecommitdiff
path: root/chapter24/src/main/java/com/seaofnodes/simple/sys.java
blob: 45106770a8faa23e2e35e3f46125502a6561dde1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.seaofnodes.simple;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;


/** Default included namespaces for Simple.

    You can think of this as {@code #include <stdio.h>} for C or {@code import java.lang.*} for Java.
 */
public abstract class sys {

    public static final String SYS;

    static {
        try {
            SYS = Files.readString(Path.of("src/main/smp/sys.smp"));
        }
        catch( Exception e ) {
            throw new RuntimeException(e);
        }
    }

}