Package org.openquark.cal.compiler.SourceModel.FunctionDefn

Examples of org.openquark.cal.compiler.SourceModel.FunctionDefn.Algebraic


         * @param functionDefn  An algebraic function definition
         * @return A string representing the left-hand side of the definition
         */
        private String leftHandString(FunctionDefn functionDefn) {
            if (functionDefn instanceof Algebraic) {
                Algebraic algebraic = (Algebraic)functionDefn;

                StringBuilder buffer = new StringBuilder(algebraic.getScope().toString());
                buffer.append(' ');
                buffer.append(algebraic.getName());

                for(int i = 0; i < algebraic.getNParameters(); i++) {
                    buffer.append(' ');
                    buffer.append(algebraic.getNthParameter(i));
                }

                buffer.append(" = ...");

                return buffer.toString();
View Full Code Here

TOP

Related Classes of org.openquark.cal.compiler.SourceModel.FunctionDefn.Algebraic

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.