Package org.ek9lang.compiler
Class Ek9BuiltinLangSupplier
java.lang.Object
org.ek9lang.compiler.Ek9BuiltinLangSupplier
- All Implemented Interfaces:
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
As we add more, update this. -
Constructor Summary
-
Method Summary
-
Field Details
-
NUMBER_OF_EK9_SYMBOLS
public static final int NUMBER_OF_EK9_SYMBOLSAs we add more, update this.- See Also:
-
-
Constructor Details
-
Ek9BuiltinLangSupplier
public Ek9BuiltinLangSupplier()
-
-
Method Details
-
get
- Specified by:
get
in interfaceSupplier<List<CompilableSource>>
-