Esempio n. 1
0
 protected override void visitAttributeDeclaration(Attribute declaration)
 {
     writer.Append(KeywordEnum.ATTRIBUTE.ToString()).Append(' ');
     writer.AppendIdentifier(declaration);
     writer.Append(" : ");
     output.writeSubtypeIndication(declaration.Type);
     writer.Append(';').NewLine();
 }
        protected override void visitComponentInstantiation(ComponentInstantiation statement)
        {
            appendLabel(statement);

            ComponentInstantiationFormat format = Annotations.getAnnotation <ComponentInstantiationFormat>(statement);

            if (format != null && format.isUseOptionalComponentKeyword())
            {
                writer.Append(KeywordEnum.COMPONENT.ToString()).Append(' ');
            }

            writer.AppendIdentifier(statement.Component).Indent();
            appendComponentInstantiationMaps(statement);
            writer.Dedent().Append(';').NewLine();
        }
Esempio n. 3
0
 protected override void visitFunctionCall(FunctionCall expression)
 {
     writer.AppendIdentifier(expression.Function);
     if (expression.Parameters.Count != 0)
     {
         writer.Append('(');
         output.getMiscellaneousElementOutput().functionCallParameters(expression.Parameters);
         writer.Append(')');
     }
 }
 protected override void visitArchitecture(Architecture architecture)
 {
     writer.Append(KeywordEnum.ARCHITECTURE.ToString()).Append(' ');
     writer.AppendIdentifier(architecture).Append(' ');
     writer.Append(KeywordEnum.OF.ToString()).Append(' ');
     writer.AppendIdentifier(architecture.Entity).Append(' ');
     writer.Append(KeywordEnum.IS.ToString()).NewLine().Indent();
     output.writeDeclarationMarkers(architecture.Declarations);
     writer.Dedent().Append(KeywordEnum.BEGIN.ToString()).NewLine().Indent();
     output.writeConcurrentStatements(architecture.Statements);
     writer.Dedent().Append(KeywordEnum.END.ToString()).Append(";").NewLine();
 }
 public void subtypeSubtypeIndication(Subtype subtype)
 {
     writer.AppendIdentifier(subtype);
 }
Esempio n. 6
0
 private void appendTypePrefix(Type declaration)
 {
     writer.Append(KeywordEnum.TYPE.ToString()).Append(' ');
     writer.AppendIdentifier(declaration).Append(' ').Append(KeywordEnum.IS.ToString());
 }
Esempio n. 7
0
 public void visit(SimpleName name)
 {
     writer.AppendIdentifier(name.Referenced);
 }