MicroModelicaCCompiler
4.5.3
|
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <iostream>
#include <list>
#include <string>
#include "ast_builder.hpp"
#include <ast/parser/mocc_parser.h>
#include "ast_types.hpp"
#include "../util/ast_util.hpp"
#include "class.hpp"
#include "composition.hpp"
#include "element.hpp"
#include "equation.hpp"
#include "expression.hpp"
#include "modification.hpp"
#include "statement.hpp"
#include "stored_definition.hpp"
Go to the source code of this file.
Functions | |
AST_StoredDefinition | newAST_StoredDefinition (AST_ClassList cl, AST_String within) |
AST_String | AST_SanitizeString (std::string new_string) |
AST_String | newAST_String (string s) |
AST_String | newAST_String (char *s) |
AST_String | newAST_String (const char *s) |
AST_String | newAST_String (AST_String s) |
AST_String | copyAST_String (AST_String s) |
AST_String | newAST_DotString (AST_String s) |
AST_String | AST_StringDotAppend (AST_String ret, AST_String a) |
AST_String | newAST_StringNull () |
AST_ClassList | newAST_ClassList () |
AST_Composition | newAST_Composition () |
AST_Composition | newAST_Composition (AST_ElementList el) |
AST_Composition | newAST_Composition (AST_ElementList el, AST_CompositionElementList cl) |
AST_Composition | newAST_Composition (AST_CompositionElementList cl) |
AST_ElementList | newAST_ElementList () |
AST_Element | AST_ImportToElement (AST_Element_ImportClause i) |
AST_Element | AST_ExtendsToElement (AST_Element_ExtendsClause e) |
AST_Element_ExtendsClause | newAST_Element_ExtendsClause (AST_String name) |
AST_Element | newAST_Element_ClassWrapper (AST_Class c) |
AST_Element | AST_Element_ComponentToElement (AST_Element_Component c) |
AST_CompositionElementList | newAST_CompositionElementList () |
AST_Element_ImportClause | newAST_ImportClause (AST_String name) |
AST_Expression | newAST_Expression_Integer (int i) |
AST_ExpressionList | newAST_ExpressionList (AST_Expression e) |
AST_ExpressionList | newAST_ExpressionList () |
AST_Argument | AST_ArgumentSet (bool each, bool final, AST_Argument arg) |
AST_EquationList | newAST_EquationList () |
AST_Equation | newAST_Equation_Equality (AST_Expression left, AST_Expression right, AST_Comment comment) |
AST_Equation | newAST_Equation_Connect (AST_Expression_ComponentReference cr1, AST_Expression_ComponentReference cr2) |
AST_Expression | newAST_Expression_Real (AST_Real r) |
AST_Expression | newAST_Expression_String (AST_String s) |
AST_Expression | newAST_Expression_Boolean (AST_Boolean b) |
AST_Expression | newAST_Expression_Derivative (AST_ExpressionList el) |
AST_Class | newAST_Class (AST_String s) |
AST_Class | newAST_Class (AST_String s, AST_Composition comp) |
AST_Element_Component | newAST_Element_Component (AST_DeclarationList cl, AST_String type, AST_TypePrefix tp, AST_ExpressionList ind) |
AST_Declaration | newAST_Declaration (AST_String s, AST_ExpressionList indexes, AST_Modification m) |
AST_DeclarationList | newAST_DeclarationList (AST_Declaration d) |
AST_CompositionElement | newAST_CompositionElement (AST_ElementList el) |
AST_Expression | newAST_Expression_ComponentReferenceExp (AST_String s) |
AST_Expression | newAST_Expression_ComponentReferenceExp (AST_String s, AST_String s2) |
AST_Expression | newAST_Expression_ComponentReferenceExpDot (AST_String s, AST_String rest) |
AST_Expression_ComponentReference | newAST_Expression_ComponentReference () |
AST_Expression_ComponentReference | AST_Expression_ComponentReference_AddDot (AST_Expression_ComponentReference cr, AST_String s, AST_ExpressionList subs) |
AST_Expression_ComponentReference | AST_Expression_ComponentReference_Add (AST_Expression_ComponentReference cr, AST_String s, AST_ExpressionList subs) |
ostream & | operator<< (ostream &os, const AST_CompositionElement &ce) |
ostream & | operator<< (ostream &os, const AST_String &s) |
AST_Element_ComponentList | newAST_Element_ComponentList () |
AST_TypePrefix | newAST_TypePrefix () |
AST_TypePrefix | newAST_TypePrefix (AST_TypePrefix tp) |
AST_TypePrefix | AST_TypePrefixAdd (AST_TypePrefix tp, AST_TypePrefix tpadd) |
AST_Expression | newAST_Expression_BinOp (AST_Expression left, AST_Expression right, BinOpType type) |
AST_Expression | newAST_Expression_UnaryMinus (AST_Expression e) |
AST_Expression | newAST_Expression_If (AST_Expression cond, AST_Expression then, AST_ExpressionList else_list, AST_Expression else_exp) |
AST_Equation | newAST_Equation_If (AST_Expression e, AST_EquationList eql, AST_Equation_ElseList elseif, AST_EquationList elseeqs) |
AST_StringList | newAST_StringList () |
AST_Expression | newAST_Expression_End () |
AST_Expression | newAST_Expression_Null () |
AST_Expression | newAST_Expression_DotCall (AST_String name, AST_String rest, AST_ExpressionList args) |
AST_Expression | newAST_Expression_Call (AST_String name, AST_String rest, AST_ExpressionList args) |
AST_Expression | newAST_Expression_Call (AST_String name, AST_String rest, AST_ExpressionList args, AST_ExpressionList output_args) |
AST_Expression | newAST_Expression_Colon () |
AST_Expression | newAST_Expression_BooleanNot (AST_Expression e) |
AST_Equation | newAST_Equation_Call (AST_Expression e) |
AST_ClassPrefix | AST_ClassPrefix_Class () |
AST_ClassPrefix | AST_ClassPrefix_Model () |
AST_ClassPrefix | AST_ClassPrefix_Record (AST_Boolean oper) |
AST_ClassPrefix | AST_ClassPrefix_Block () |
AST_ClassPrefix | AST_ClassPrefix_Connector (AST_Boolean expandable) |
AST_ClassPrefix | AST_ClassPrefix_Type () |
AST_ClassPrefix | AST_ClassPrefix_Package () |
AST_ClassPrefix | AST_ClassPrefix_Function (AST_ClassPrefix p) |
AST_ClassPrefix | AST_ClassPrefix_Operator () |
AST_ClassPrefix | AST_ClassPrefix_Impure (AST_Boolean oper) |
AST_ClassPrefix | AST_ClassPrefix_Pure (AST_Boolean oper) |
AST_ClassPrefix | AST_ClassPrefix_None () |
AST_ClassPrefix | AST_ClassPrefix_AddPartial (AST_Boolean partial, AST_ClassPrefix p) |
AST_Equation | newAST_EquationFor (AST_ForIndexList ind, AST_EquationList eql) |
AST_ForIndex | newAST_ForIndex (AST_String ident, AST_Expression exp) |
AST_ForIndexList | newAST_ForIndexList () |
AST_Equation | newAST_Equation_For (AST_ForIndexList ind, AST_EquationList eql) |
AST_Class | AST_Class_SetFinal (AST_Class c, AST_Boolean final) |
AST_Class | AST_Class_SetPrefixEncapsulated (AST_Class c, AST_ClassPrefix prefix, AST_Boolean enc) |
AST_Expression | AST_Expression_ComponentReferenceExpAddDot (AST_Expression_ComponentReference cr, AST_String id, AST_String rest, AST_ExpressionList subs) |
AST_Expression | AST_Expression_ComponentReferenceExpAdd (AST_Expression_ComponentReference cr, AST_String id, AST_String rest, AST_ExpressionList subs) |
AST_Expression | newAST_Expression_NamedArgument (AST_String s, AST_Expression e) |
AST_Expression | newAST_Expression_FunctionCallArgs (AST_ExpressionList el) |
AST_Expression | newAST_Expression_Function (AST_String, AST_ExpressionList) |
AST_Equation_ElseList | newAST_Equation_ElseIfList () |
AST_Equation_Else | newAST_Equation_Else (AST_Expression cond, AST_EquationList eqs) |
AST_StatementList | newAST_StatementList () |
AST_Statement | newAST_Statement_Break () |
AST_Statement | newAST_Statement_Return () |
AST_Modification | newAST_ModificationNull () |
AST_Statement_ElseList | newAST_Statement_ElseList () |
AST_Equation_ElseList | newAST_Equation_ElseList () |
AST_ArgumentList | newAST_ArgumentList () |
AST_Argument | newAST_Argument_Modification (AST_String s, AST_Modification m) |
AST_ExpressionListList | newAST_ExpressionListList () |
AST_Argument | AST_ArgumentSetReplaceable (AST_Argument arg) |
AST_Modification | newAST_Modification_Equal (AST_Expression e) |
AST_Modification | newAST_Modification_Assign (AST_Expression e) |
AST_Expression | newAST_Expression_Range (AST_Expression e1, AST_Expression e2) |
AST_Expression | newAST_Expression_OutputExpressions (AST_ExpressionList exp_list) |
AST_Expression | newAST_Expression_Brace (AST_ExpressionList el) |
AST_Expression | newAST_BracketExpList (AST_ExpressionListList expss) |
AST_Expression | newAST_Expression_ElseIf (AST_Expression c, AST_Expression t) |
AST_Statement_Else | newAST_Statement_Else (AST_Expression cond, AST_StatementList st) |
AST_Statement | newAST_Statement_If (AST_Expression cond, AST_StatementList true_st, AST_Statement_ElseList else_st, AST_StatementList false_st) |
AST_Statement | newAST_Statement_For (AST_ForIndexList index, AST_StatementList st) |
AST_Statement | newAST_Statement_While (AST_Expression cond, AST_StatementList st) |
AST_Statement | newAST_Statement_When (AST_Expression cond, AST_StatementList sts, AST_Statement_ElseList else_st, AST_Comment c) |
AST_Statement | newAST_Statement_OutputAssign (AST_ExpressionList out_vars, AST_Expression_ComponentReference funname, AST_ExpressionList args) |
AST_Statement | newAST_Statement_Assign (AST_Expression_ComponentReference cr, AST_Expression exp) |
AST_Equation | newAST_Equation_When (AST_Expression cond, AST_EquationList eqs, AST_Equation_ElseList else_list, AST_Comment comment) |
AST_CompositionEqsAlgs | newAST_CompositionInitialEquations (AST_EquationList eqlist) |
AST_CompositionEqsAlgs | newAST_CompositionEquations (AST_EquationList eqlist) |
AST_CompositionEqsAlgs | newAST_CompositionInitialAlgorithms (AST_StatementList stlist) |
AST_CompositionEqsAlgs | newAST_CompositionAlgorithms (AST_StatementList stlist) |
AST_ShortClassExp | newAST_ShortClassExp (AST_TypePrefix, AST_String, AST_ExpressionList, AST_ArgumentList) |
AST_ShortClassExp | newAST_ShortClassExp_Enum (AST_StringList) |
AST_Argument | newAST_Redeclaration (AST_Boolean, AST_Boolean, AST_Argument) |
AST_Argument | newAST_ShortClass (AST_ClassPrefix, AST_String, AST_ShortClassExp) |
AST_Argument | newAST_ElementModification (AST_String n, AST_Modification m) |
AST_Modification | newAST_Modification_Class (AST_ArgumentList al, AST_Expression e) |
AST_CompositionElement | newAST_CompositionElement (AST_CompositionEqsAlgs comp_eq_algs) |
AST_Class | newAST_ClassExtends (AST_String, AST_Composition) |
AST_Class | newAST_ClassEnumeration (AST_String, AST_StringList) |
AST_Class | newAST_ClassDerivation (AST_String, AST_String, AST_StringList) |
AST_Class | newAST_ClassModification (AST_String, AST_TypePrefix, AST_String, AST_ExpressionList, AST_ArgumentList) |
AST_CompositionEqsAlgs | newAST_NullCompositionEquations () |
AST_Declaration | AST_Declaration_AddCondComment (AST_Declaration decl, AST_Expression exp, AST_Comment comment) |
AST_Comment | newAST_Comment (AST_String st, AST_ArgumentList al) |
AST_External_Function_Call | newAST_ExternalCall () |
AST_External_Function_Call | newAST_ExternalCall (AST_String lang, AST_Expression_ComponentReference cr, AST_Expression args, AST_ArgumentList annot) |
AST_Composition | AST_Composition_SetExternalAnnotation (AST_Composition c, AST_External_Function_Call ext, AST_ArgumentList annot) |
Variables | |
int | block |
AST_Argument AST_ArgumentSet | ( | bool | each, |
bool | final, | ||
AST_Argument | arg | ||
) |
Definition at line 140 of file ast_builder.cpp.
AST_Argument AST_ArgumentSetReplaceable | ( | AST_Argument | arg | ) |
Definition at line 499 of file ast_builder.cpp.
AST_Class AST_Class_SetFinal | ( | AST_Class | c, |
AST_Boolean | final | ||
) |
Definition at line 422 of file ast_builder.cpp.
AST_Class AST_Class_SetPrefixEncapsulated | ( | AST_Class | c, |
AST_ClassPrefix | prefix, | ||
AST_Boolean | enc | ||
) |
Definition at line 430 of file ast_builder.cpp.
AST_ClassPrefix AST_ClassPrefix_AddPartial | ( | AST_Boolean | partial, |
AST_ClassPrefix | p | ||
) |
Definition at line 406 of file ast_builder.cpp.
References CP_PARTIAL.
AST_ClassPrefix AST_ClassPrefix_Block | ( | ) |
Definition at line 370 of file ast_builder.cpp.
References CP_BLOCK.
AST_ClassPrefix AST_ClassPrefix_Class | ( | ) |
Definition at line 358 of file ast_builder.cpp.
References CP_CLASS.
AST_ClassPrefix AST_ClassPrefix_Connector | ( | AST_Boolean | expandable | ) |
Definition at line 372 of file ast_builder.cpp.
References CP_CONNECTOR, and CP_EXPANDABLE.
AST_ClassPrefix AST_ClassPrefix_Function | ( | AST_ClassPrefix | p | ) |
Definition at line 384 of file ast_builder.cpp.
References CP_FUNCTION.
AST_ClassPrefix AST_ClassPrefix_Impure | ( | AST_Boolean | oper | ) |
Definition at line 388 of file ast_builder.cpp.
References CP_IMPURE, and CP_OPERATOR.
AST_ClassPrefix AST_ClassPrefix_Model | ( | ) |
Definition at line 360 of file ast_builder.cpp.
References CP_MODEL.
AST_ClassPrefix AST_ClassPrefix_None | ( | ) |
Definition at line 404 of file ast_builder.cpp.
AST_ClassPrefix AST_ClassPrefix_Operator | ( | ) |
Definition at line 386 of file ast_builder.cpp.
References CP_OPERATOR.
AST_ClassPrefix AST_ClassPrefix_Package | ( | ) |
Definition at line 382 of file ast_builder.cpp.
References CP_PACKAGE.
AST_ClassPrefix AST_ClassPrefix_Pure | ( | AST_Boolean | oper | ) |
Definition at line 396 of file ast_builder.cpp.
References CP_OPERATOR, and CP_PURE.
AST_ClassPrefix AST_ClassPrefix_Record | ( | AST_Boolean | oper | ) |
Definition at line 362 of file ast_builder.cpp.
References CP_OPERATOR, and CP_RECORD.
AST_ClassPrefix AST_ClassPrefix_Type | ( | ) |
Definition at line 380 of file ast_builder.cpp.
References CP_TYPE.
AST_Composition AST_Composition_SetExternalAnnotation | ( | AST_Composition | c, |
AST_External_Function_Call | ext, | ||
AST_ArgumentList | annot | ||
) |
Definition at line 662 of file ast_builder.cpp.
AST_Declaration AST_Declaration_AddCondComment | ( | AST_Declaration | decl, |
AST_Expression | exp, | ||
AST_Comment | comment | ||
) |
Definition at line 640 of file ast_builder.cpp.
AST_Element AST_Element_ComponentToElement | ( | AST_Element_Component | c | ) |
Definition at line 124 of file ast_builder.cpp.
AST_Expression_ComponentReference AST_Expression_ComponentReference_Add | ( | AST_Expression_ComponentReference | cr, |
AST_String | s, | ||
AST_ExpressionList | subs | ||
) |
Definition at line 236 of file ast_builder.cpp.
References AST_SanitizeString().
Referenced by AST_Expression_ComponentReferenceExpAdd(), and MicroModelica::Util::ConvertToGiNaC::getSymbol().
AST_Expression_ComponentReference AST_Expression_ComponentReference_AddDot | ( | AST_Expression_ComponentReference | cr, |
AST_String | s, | ||
AST_ExpressionList | subs | ||
) |
Definition at line 228 of file ast_builder.cpp.
Referenced by AST_Expression_ComponentReferenceExpAddDot().
AST_Expression AST_Expression_ComponentReferenceExpAdd | ( | AST_Expression_ComponentReference | cr, |
AST_String | id, | ||
AST_String | rest, | ||
AST_ExpressionList | subs | ||
) |
Definition at line 449 of file ast_builder.cpp.
References AST_Expression_ComponentReference_Add().
AST_Expression AST_Expression_ComponentReferenceExpAddDot | ( | AST_Expression_ComponentReference | cr, |
AST_String | id, | ||
AST_String | rest, | ||
AST_ExpressionList | subs | ||
) |
Definition at line 439 of file ast_builder.cpp.
References AST_Expression_ComponentReference_AddDot().
AST_Element AST_ExtendsToElement | ( | AST_Element_ExtendsClause | e | ) |
Definition at line 113 of file ast_builder.cpp.
AST_Element AST_ImportToElement | ( | AST_Element_ImportClause | i | ) |
Definition at line 111 of file ast_builder.cpp.
AST_String AST_SanitizeString | ( | std::string | new_string | ) |
Definition at line 48 of file ast_builder.cpp.
Referenced by AST_Expression_ComponentReference_Add(), AST_StringDotAppend(), copyAST_String(), newAST_Declaration(), newAST_DotString(), newAST_Expression_ComponentReferenceExp(), newAST_Expression_String(), and newAST_String().
AST_String AST_StringDotAppend | ( | AST_String | ret, |
AST_String | a | ||
) |
Definition at line 84 of file ast_builder.cpp.
References AST_SanitizeString().
AST_TypePrefix AST_TypePrefixAdd | ( | AST_TypePrefix | tp, |
AST_TypePrefix | tpadd | ||
) |
Definition at line 263 of file ast_builder.cpp.
AST_String copyAST_String | ( | AST_String | s | ) |
Definition at line 70 of file ast_builder.cpp.
References AST_SanitizeString().
AST_Argument newAST_Argument_Modification | ( | AST_String | s, |
AST_Modification | m | ||
) |
Definition at line 495 of file ast_builder.cpp.
AST_ArgumentList newAST_ArgumentList | ( | ) |
Definition at line 493 of file ast_builder.cpp.
AST_Expression newAST_BracketExpList | ( | AST_ExpressionListList | expss | ) |
Definition at line 526 of file ast_builder.cpp.
References AST_ListAppend(), current_element, EXPRANGE, and newAST_ExpressionList().
AST_Class newAST_Class | ( | AST_String | s | ) |
Definition at line 176 of file ast_builder.cpp.
References newAST_Class(), and newAST_Composition().
Referenced by newAST_Class().
AST_Class newAST_Class | ( | AST_String | s, |
AST_Composition | comp | ||
) |
Definition at line 178 of file ast_builder.cpp.
AST_Class newAST_ClassDerivation | ( | AST_String | , |
AST_String | , | ||
AST_StringList | |||
) |
Definition at line 626 of file ast_builder.cpp.
AST_Class newAST_ClassEnumeration | ( | AST_String | , |
AST_StringList | |||
) |
Definition at line 620 of file ast_builder.cpp.
AST_Class newAST_ClassExtends | ( | AST_String | , |
AST_Composition | |||
) |
Definition at line 614 of file ast_builder.cpp.
AST_ClassList newAST_ClassList | ( | ) |
Definition at line 99 of file ast_builder.cpp.
Referenced by AST_Class_::AST_Class_().
AST_Class newAST_ClassModification | ( | AST_String | , |
AST_TypePrefix | , | ||
AST_String | , | ||
AST_ExpressionList | , | ||
AST_ArgumentList | |||
) |
Definition at line 632 of file ast_builder.cpp.
AST_Comment newAST_Comment | ( | AST_String | st, |
AST_ArgumentList | al | ||
) |
Definition at line 646 of file ast_builder.cpp.
AST_Composition newAST_Composition | ( | ) |
Definition at line 101 of file ast_builder.cpp.
References newAST_CompositionElementList(), and newAST_ElementList().
Referenced by newAST_Class().
AST_Composition newAST_Composition | ( | AST_CompositionElementList | cl | ) |
Definition at line 107 of file ast_builder.cpp.
References newAST_ElementList().
AST_Composition newAST_Composition | ( | AST_ElementList | el | ) |
Definition at line 103 of file ast_builder.cpp.
References newAST_CompositionElementList().
AST_Composition newAST_Composition | ( | AST_ElementList | el, |
AST_CompositionElementList | cl | ||
) |
Definition at line 105 of file ast_builder.cpp.
AST_CompositionEqsAlgs newAST_CompositionAlgorithms | ( | AST_StatementList | stlist | ) |
Definition at line 583 of file ast_builder.cpp.
AST_CompositionElement newAST_CompositionElement | ( | AST_CompositionEqsAlgs | comp_eq_algs | ) |
Definition at line 612 of file ast_builder.cpp.
AST_CompositionElement newAST_CompositionElement | ( | AST_ElementList | el | ) |
Definition at line 196 of file ast_builder.cpp.
AST_CompositionElementList newAST_CompositionElementList | ( | ) |
Definition at line 126 of file ast_builder.cpp.
Referenced by newAST_Composition().
AST_CompositionEqsAlgs newAST_CompositionEquations | ( | AST_EquationList | eqlist | ) |
Definition at line 579 of file ast_builder.cpp.
AST_CompositionEqsAlgs newAST_CompositionInitialAlgorithms | ( | AST_StatementList | stlist | ) |
Definition at line 581 of file ast_builder.cpp.
AST_CompositionEqsAlgs newAST_CompositionInitialEquations | ( | AST_EquationList | eqlist | ) |
Definition at line 577 of file ast_builder.cpp.
AST_Declaration newAST_Declaration | ( | AST_String | s, |
AST_ExpressionList | indexes, | ||
AST_Modification | m | ||
) |
Definition at line 187 of file ast_builder.cpp.
References AST_SanitizeString().
AST_DeclarationList newAST_DeclarationList | ( | AST_Declaration | d | ) |
Definition at line 194 of file ast_builder.cpp.
References newAST_SimpleList().
AST_String newAST_DotString | ( | AST_String | s | ) |
Definition at line 76 of file ast_builder.cpp.
References AST_SanitizeString().
AST_Element newAST_Element_ClassWrapper | ( | AST_Class | c | ) |
Definition at line 122 of file ast_builder.cpp.
AST_Element_Component newAST_Element_Component | ( | AST_DeclarationList | cl, |
AST_String | type, | ||
AST_TypePrefix | tp, | ||
AST_ExpressionList | ind | ||
) |
Definition at line 180 of file ast_builder.cpp.
AST_Element_ComponentList newAST_Element_ComponentList | ( | ) |
Definition at line 257 of file ast_builder.cpp.
Referenced by AST_Class_::AST_Class_().
AST_Element_ExtendsClause newAST_Element_ExtendsClause | ( | AST_String | name | ) |
Definition at line 115 of file ast_builder.cpp.
AST_ElementList newAST_ElementList | ( | ) |
Definition at line 109 of file ast_builder.cpp.
Referenced by newAST_Composition().
AST_Argument newAST_ElementModification | ( | AST_String | n, |
AST_Modification | m | ||
) |
Definition at line 608 of file ast_builder.cpp.
AST_Equation newAST_Equation_Call | ( | AST_Expression | e | ) |
Definition at line 349 of file ast_builder.cpp.
References EXPCALL.
AST_Equation newAST_Equation_Connect | ( | AST_Expression_ComponentReference | cr1, |
AST_Expression_ComponentReference | cr2 | ||
) |
Definition at line 158 of file ast_builder.cpp.
AST_Equation_Else newAST_Equation_Else | ( | AST_Expression | cond, |
AST_EquationList | eqs | ||
) |
Definition at line 479 of file ast_builder.cpp.
AST_Equation_ElseList newAST_Equation_ElseIfList | ( | ) |
Definition at line 477 of file ast_builder.cpp.
AST_Equation_ElseList newAST_Equation_ElseList | ( | ) |
Definition at line 491 of file ast_builder.cpp.
AST_Equation newAST_Equation_Equality | ( | AST_Expression | left, |
AST_Expression | right, | ||
AST_Comment | comment | ||
) |
Definition at line 153 of file ast_builder.cpp.
AST_Equation newAST_Equation_For | ( | AST_ForIndexList | ind, |
AST_EquationList | eql | ||
) |
Definition at line 420 of file ast_builder.cpp.
Referenced by MicroModelica::IR::MicroModelicaIR::checkForEquation().
AST_Equation newAST_Equation_If | ( | AST_Expression | e, |
AST_EquationList | eql, | ||
AST_Equation_ElseList | elseif, | ||
AST_EquationList | elseeqs | ||
) |
Definition at line 310 of file ast_builder.cpp.
AST_Equation newAST_Equation_When | ( | AST_Expression | cond, |
AST_EquationList | eqs, | ||
AST_Equation_ElseList | else_list, | ||
AST_Comment | comment | ||
) |
Definition at line 572 of file ast_builder.cpp.
AST_Equation newAST_EquationFor | ( | AST_ForIndexList | ind, |
AST_EquationList | eql | ||
) |
Definition at line 414 of file ast_builder.cpp.
AST_EquationList newAST_EquationList | ( | ) |
Definition at line 151 of file ast_builder.cpp.
AST_Expression newAST_Expression_BinOp | ( | AST_Expression | left, |
AST_Expression | right, | ||
BinOpType | type | ||
) |
Definition at line 265 of file ast_builder.cpp.
References BINOPADD, BINOPMULT, BINOPSUB, EXPINTEGER, and EXPREAL.
Referenced by AST_Expression_Traverse::apply(), ReplaceBoolean::foldTraverseElement(), WhenEqualityTrasforms::foldTraverseElement(), PreChange::foldTraverseElement(), and ReplaceReference::foldTraverseElement().
AST_Expression newAST_Expression_Boolean | ( | AST_Boolean | b | ) |
Definition at line 172 of file ast_builder.cpp.
AST_Expression newAST_Expression_BooleanNot | ( | AST_Expression | e | ) |
Definition at line 347 of file ast_builder.cpp.
Referenced by AST_Expression_Traverse::apply(), WhenEqualityTrasforms::foldTraverseElement(), PreChange::foldTraverseElement(), and ReplaceReference::foldTraverseElement().
AST_Expression newAST_Expression_Brace | ( | AST_ExpressionList | el | ) |
Definition at line 524 of file ast_builder.cpp.
AST_Expression newAST_Expression_Call | ( | AST_String | name, |
AST_String | rest, | ||
AST_ExpressionList | args | ||
) |
Definition at line 331 of file ast_builder.cpp.
Referenced by AST_Expression_Traverse::apply(), AST_Statement_Visitor< F, R, V >::apply(), and PreChange::foldTraverseElement().
AST_Expression newAST_Expression_Call | ( | AST_String | name, |
AST_String | rest, | ||
AST_ExpressionList | args, | ||
AST_ExpressionList | output_args | ||
) |
Definition at line 340 of file ast_builder.cpp.
AST_Expression newAST_Expression_Colon | ( | ) |
Definition at line 345 of file ast_builder.cpp.
AST_Expression_ComponentReference newAST_Expression_ComponentReference | ( | ) |
Definition at line 222 of file ast_builder.cpp.
Referenced by MicroModelica::Util::ConvertToGiNaC::getSymbol(), and newAST_Expression_ComponentReferenceExp().
AST_Expression newAST_Expression_ComponentReferenceExp | ( | AST_String | s | ) |
Definition at line 198 of file ast_builder.cpp.
References AST_SanitizeString(), newAST_Expression_ComponentReference(), and newAST_ExpressionList().
Referenced by ReplaceReference::foldTraverseElement(), newAST_Expression_ComponentReferenceExp(), and newAST_Expression_ComponentReferenceExpDot().
AST_Expression newAST_Expression_ComponentReferenceExp | ( | AST_String | s, |
AST_String | s2 | ||
) |
Definition at line 205 of file ast_builder.cpp.
References newAST_Expression_ComponentReferenceExp().
AST_Expression newAST_Expression_ComponentReferenceExpDot | ( | AST_String | s, |
AST_String | rest | ||
) |
Definition at line 214 of file ast_builder.cpp.
References newAST_Expression_ComponentReferenceExp().
AST_Expression newAST_Expression_Derivative | ( | AST_ExpressionList | el | ) |
Definition at line 174 of file ast_builder.cpp.
AST_Expression newAST_Expression_DotCall | ( | AST_String | name, |
AST_String | rest, | ||
AST_ExpressionList | args | ||
) |
Definition at line 321 of file ast_builder.cpp.
AST_Expression newAST_Expression_ElseIf | ( | AST_Expression | c, |
AST_Expression | t | ||
) |
Definition at line 543 of file ast_builder.cpp.
AST_Expression newAST_Expression_End | ( | ) |
Definition at line 317 of file ast_builder.cpp.
AST_Expression newAST_Expression_Function | ( | AST_String | , |
AST_ExpressionList | |||
) |
Definition at line 471 of file ast_builder.cpp.
AST_Expression newAST_Expression_FunctionCallArgs | ( | AST_ExpressionList | el | ) |
Definition at line 465 of file ast_builder.cpp.
AST_Expression newAST_Expression_If | ( | AST_Expression | cond, |
AST_Expression | then, | ||
AST_ExpressionList | else_list, | ||
AST_Expression | else_exp | ||
) |
Definition at line 305 of file ast_builder.cpp.
Referenced by AST_Expression_Traverse::apply(), and WhenEqualityTrasforms::foldTraverseElement().
AST_Expression newAST_Expression_Integer | ( | int | i | ) |
Definition at line 130 of file ast_builder.cpp.
Referenced by MicroModelica::Util::ConvertToExpression::convert().
AST_Expression newAST_Expression_NamedArgument | ( | AST_String | s, |
AST_Expression | e | ||
) |
Definition at line 459 of file ast_builder.cpp.
AST_Expression newAST_Expression_Null | ( | ) |
Definition at line 319 of file ast_builder.cpp.
AST_Expression newAST_Expression_OutputExpressions | ( | AST_ExpressionList | exp_list | ) |
Definition at line 522 of file ast_builder.cpp.
Referenced by AST_Expression_Traverse::apply(), WhenEqualityTrasforms::foldTraverseElement(), PreChange::foldTraverseElement(), and ReplaceReference::foldTraverseElement().
AST_Expression newAST_Expression_Range | ( | AST_Expression | e1, |
AST_Expression | e2 | ||
) |
Definition at line 505 of file ast_builder.cpp.
References AST_ListAppend(), EXPRANGE, and newAST_ExpressionList().
AST_Expression newAST_Expression_Real | ( | AST_Real | r | ) |
Definition at line 163 of file ast_builder.cpp.
Referenced by ReplaceBoolean::foldTraverseElement(), and WhenEqualityTrasforms::foldTraverseElement().
AST_Expression newAST_Expression_String | ( | AST_String | s | ) |
Definition at line 165 of file ast_builder.cpp.
References AST_SanitizeString().
AST_Expression newAST_Expression_UnaryMinus | ( | AST_Expression | e | ) |
Definition at line 294 of file ast_builder.cpp.
References EXPUMINUS.
Referenced by AST_Expression_Traverse::apply(), ReplaceBoolean::foldTraverseElementUMinus(), WhenEqualityTrasforms::foldTraverseElementUMinus(), PreChange::foldTraverseElementUMinus(), and ReplaceReference::foldTraverseElementUMinus().
AST_ExpressionList newAST_ExpressionList | ( | ) |
Definition at line 134 of file ast_builder.cpp.
AST_ExpressionList newAST_ExpressionList | ( | AST_Expression | e | ) |
Definition at line 132 of file ast_builder.cpp.
References newAST_SimpleList().
Referenced by AST_Expression_Traverse::apply(), AST_Expression_ComponentReference_::firstIndex(), WhenEqualityTrasforms::foldTraverseElement(), MicroModelica::Util::ConvertToGiNaC::getSymbol(), newAST_BracketExpList(), newAST_Expression_ComponentReferenceExp(), newAST_Expression_Range(), and Type_Array_::print().
AST_ExpressionListList newAST_ExpressionListList | ( | ) |
Definition at line 497 of file ast_builder.cpp.
AST_External_Function_Call newAST_ExternalCall | ( | ) |
Definition at line 654 of file ast_builder.cpp.
AST_External_Function_Call newAST_ExternalCall | ( | AST_String | lang, |
AST_Expression_ComponentReference | cr, | ||
AST_Expression | args, | ||
AST_ArgumentList | annot | ||
) |
Definition at line 656 of file ast_builder.cpp.
AST_ForIndex newAST_ForIndex | ( | AST_String | ident, |
AST_Expression | exp | ||
) |
Definition at line 416 of file ast_builder.cpp.
AST_ForIndexList newAST_ForIndexList | ( | ) |
Definition at line 418 of file ast_builder.cpp.
AST_Element_ImportClause newAST_ImportClause | ( | AST_String | name | ) |
Definition at line 128 of file ast_builder.cpp.
AST_Modification newAST_Modification_Assign | ( | AST_Expression | e | ) |
Definition at line 503 of file ast_builder.cpp.
AST_Modification newAST_Modification_Class | ( | AST_ArgumentList | al, |
AST_Expression | e | ||
) |
Definition at line 610 of file ast_builder.cpp.
AST_Modification newAST_Modification_Equal | ( | AST_Expression | e | ) |
Definition at line 501 of file ast_builder.cpp.
AST_Modification newAST_ModificationNull | ( | ) |
Definition at line 487 of file ast_builder.cpp.
AST_CompositionEqsAlgs newAST_NullCompositionEquations | ( | ) |
Definition at line 638 of file ast_builder.cpp.
AST_Argument newAST_Redeclaration | ( | AST_Boolean | , |
AST_Boolean | , | ||
AST_Argument | |||
) |
Definition at line 596 of file ast_builder.cpp.
AST_Argument newAST_ShortClass | ( | AST_ClassPrefix | , |
AST_String | , | ||
AST_ShortClassExp | |||
) |
Definition at line 602 of file ast_builder.cpp.
AST_ShortClassExp newAST_ShortClassExp | ( | AST_TypePrefix | , |
AST_String | , | ||
AST_ExpressionList | , | ||
AST_ArgumentList | |||
) |
Definition at line 585 of file ast_builder.cpp.
AST_ShortClassExp newAST_ShortClassExp_Enum | ( | AST_StringList | ) |
Definition at line 590 of file ast_builder.cpp.
AST_Statement newAST_Statement_Assign | ( | AST_Expression_ComponentReference | cr, |
AST_Expression | exp | ||
) |
Definition at line 567 of file ast_builder.cpp.
AST_Statement newAST_Statement_Break | ( | ) |
Definition at line 483 of file ast_builder.cpp.
AST_Statement_Else newAST_Statement_Else | ( | AST_Expression | cond, |
AST_StatementList | st | ||
) |
Definition at line 545 of file ast_builder.cpp.
AST_Statement_ElseList newAST_Statement_ElseList | ( | ) |
Definition at line 489 of file ast_builder.cpp.
AST_Statement newAST_Statement_For | ( | AST_ForIndexList | index, |
AST_StatementList | st | ||
) |
Definition at line 553 of file ast_builder.cpp.
AST_Statement newAST_Statement_If | ( | AST_Expression | cond, |
AST_StatementList | true_st, | ||
AST_Statement_ElseList | else_st, | ||
AST_StatementList | false_st | ||
) |
Definition at line 547 of file ast_builder.cpp.
AST_Statement newAST_Statement_OutputAssign | ( | AST_ExpressionList | out_vars, |
AST_Expression_ComponentReference | funname, | ||
AST_ExpressionList | args | ||
) |
Definition at line 562 of file ast_builder.cpp.
AST_Statement newAST_Statement_Return | ( | ) |
Definition at line 485 of file ast_builder.cpp.
AST_Statement newAST_Statement_When | ( | AST_Expression | cond, |
AST_StatementList | sts, | ||
AST_Statement_ElseList | else_st, | ||
AST_Comment | c | ||
) |
Definition at line 557 of file ast_builder.cpp.
AST_Statement newAST_Statement_While | ( | AST_Expression | cond, |
AST_StatementList | st | ||
) |
Definition at line 555 of file ast_builder.cpp.
AST_StatementList newAST_StatementList | ( | ) |
Definition at line 481 of file ast_builder.cpp.
AST_StoredDefinition newAST_StoredDefinition | ( | AST_ClassList | cl, |
AST_String | within | ||
) |
Definition at line 46 of file ast_builder.cpp.
AST_String newAST_String | ( | AST_String | s | ) |
Definition at line 63 of file ast_builder.cpp.
References AST_SanitizeString().
AST_String newAST_String | ( | char * | s | ) |
Definition at line 59 of file ast_builder.cpp.
References AST_SanitizeString().
AST_String newAST_String | ( | const char * | s | ) |
Definition at line 61 of file ast_builder.cpp.
References AST_SanitizeString().
AST_String newAST_String | ( | string | s | ) |
Definition at line 57 of file ast_builder.cpp.
References AST_SanitizeString().
Referenced by MicroModelica::Util::ConvertToGiNaC::getSymbol(), and AST_Imports::visit().
AST_StringList newAST_StringList | ( | ) |
Definition at line 315 of file ast_builder.cpp.
Referenced by AST_Class_::AST_Class_(), and AST_Imports::AST_Imports().
AST_String newAST_StringNull | ( | ) |
Definition at line 97 of file ast_builder.cpp.
Referenced by AST_Expression_Traverse::apply().
AST_TypePrefix newAST_TypePrefix | ( | ) |
Definition at line 259 of file ast_builder.cpp.
AST_TypePrefix newAST_TypePrefix | ( | AST_TypePrefix | tp | ) |
Definition at line 261 of file ast_builder.cpp.
ostream& operator<< | ( | ostream & | os, |
const AST_CompositionElement & | ce | ||
) |
Definition at line 243 of file ast_builder.cpp.
ostream& operator<< | ( | ostream & | os, |
const AST_String & | s | ||
) |
Definition at line 250 of file ast_builder.cpp.
int block |
Definition at line 41 of file ast_builder.cpp.
Referenced by AST_ListPrint(), MicroModelica::IR::Event::getExpression(), MicroModelica::IR::Event::handler(), and MicroModelica::IR::FunctionPrinter::jacMacrosAccess().