Class Ek9BuiltinLangSupplier

java.lang.Object
org.ek9lang.compiler.Ek9BuiltinLangSupplier
All Implemented Interfaces:
Supplier<List<CompilableSource>>

public class Ek9BuiltinLangSupplier extends Object implements Supplier<List<CompilableSource>>
Just loads the ek9 language builtin ek9 source code and supplies it as Compilable Source. I had intended to use a resource with the source code in. But when I tried a native build with 'native-image --no-fallback -jar ek9c-jar-with-dependencies.jar' and ran the executable I got a nullPointer. So I guessed it with the resource loading 'Ek9BuiltinLangSupplier.class.getResource("/builtin/org/ek9/lang/builtin.ek9")'. Now I just hold the text as static strings and build up the source. May stick with this! This does mean that the formatted String in here will become numerous as each class is fleshed out. So may need to use other classes to hold related stuff to keep this down - but this would have happened in an external resource anyway. I quite like the idea of the source build deep in the code here.