Search in sources :

Example 1 with LibraryGenerator

use of com.oracle.truffle.dsl.processor.library.LibraryGenerator in project graal by oracle.

the class TruffleProcessor method createGenerators.

private static List<AnnotationProcessor<?>> createGenerators() {
    List<AnnotationProcessor<?>> generators = new ArrayList<>();
    generators.add(new AnnotationProcessor<>(new TypeSystemParser(), new TypeSystemCodeGenerator()));
    generators.add(new AnnotationProcessor<>(NodeParser.createDefaultParser(), new NodeCodeGenerator()));
    generators.add(new AnnotationProcessor<>(new LibraryParser(), new LibraryGenerator()));
    generators.add(new AnnotationProcessor<>(new ExportsParser(), new ExportsGenerator(new StaticConstants())));
    return generators;
}
Also used : NodeCodeGenerator(com.oracle.truffle.dsl.processor.generator.NodeCodeGenerator) StaticConstants(com.oracle.truffle.dsl.processor.generator.StaticConstants) TypeSystemParser(com.oracle.truffle.dsl.processor.parser.TypeSystemParser) LibraryParser(com.oracle.truffle.dsl.processor.library.LibraryParser) ExportsParser(com.oracle.truffle.dsl.processor.library.ExportsParser) ArrayList(java.util.ArrayList) TypeSystemCodeGenerator(com.oracle.truffle.dsl.processor.generator.TypeSystemCodeGenerator) ExportsGenerator(com.oracle.truffle.dsl.processor.library.ExportsGenerator) LibraryGenerator(com.oracle.truffle.dsl.processor.library.LibraryGenerator)

Aggregations

NodeCodeGenerator (com.oracle.truffle.dsl.processor.generator.NodeCodeGenerator)1 StaticConstants (com.oracle.truffle.dsl.processor.generator.StaticConstants)1 TypeSystemCodeGenerator (com.oracle.truffle.dsl.processor.generator.TypeSystemCodeGenerator)1 ExportsGenerator (com.oracle.truffle.dsl.processor.library.ExportsGenerator)1 ExportsParser (com.oracle.truffle.dsl.processor.library.ExportsParser)1 LibraryGenerator (com.oracle.truffle.dsl.processor.library.LibraryGenerator)1 LibraryParser (com.oracle.truffle.dsl.processor.library.LibraryParser)1 TypeSystemParser (com.oracle.truffle.dsl.processor.parser.TypeSystemParser)1 ArrayList (java.util.ArrayList)1