Package st.redline.compiler.ast

Examples of st.redline.compiler.ast.Block


    }

    public ProtoObject loadSmalltalkBlock(String name, PrimContext context) {
        if (blocks.containsKey(name))
            return createBlockInstance(blocks.get(name), context);
        Block block = (Block) blocksToBeCompiled.remove(name);
        if (block == null)
            throw new IllegalStateException("Block to be compiled '" + name + "' not found.");
        block.accept(block.analyser());
        try {
            ProtoObject newblock = (ProtoObject) defineClass(block.classBytes()).newInstance();
            blocks.put(name, newblock);
            return createBlockInstance(newblock, context);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
View Full Code Here

TOP

Related Classes of st.redline.compiler.ast.Block

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.