Commit 8fe89b8f authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Migrating from SVN

parents
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security.Permissions;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("GNU Getopt Argument Parser")]
[assembly: AssemblyDescription("This is a C# port of a Java port of GNU " +
"Getopt, a class for parsing command line arguments passed to programs. " +
"It is based on the C getopt() functions in glibc 2.0.6 and should " +
"parse options in a 100% compatible manner.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Free Software Foundation, Inc.")]
[assembly: AssemblyProduct("GNU Getopt")]
[assembly: AssemblyCopyright("Copyright (c) 1987-1997 Free Software " +
"Foundation, Inc., Java Port Copyright (c) 1998 by Aaron M. Renn " +
"(arenn@urbanophile.com), C#.NET Port of the Java Port Copyright (c) " +
"2004 by Klaus Prückl (klaus.prueckl@aon.at)")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.9.1.*")]
//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyName("")]
/*
[assembly:CLSCompliant(true)]
[assembly:ComVisible(true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,Assertion=true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,ControlAppDomain=true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,ControlDomainPolicy=true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,ControlEvidence=true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,ControlPolicy=true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,ControlPrincipal=true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,ControlThread=true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,Execution=true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,Infrastructure=true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,RemotingConfiguration=true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,SerializationFormatter=true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,SkipVerification=true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,UnmanagedCode=true)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,Unrestricted=true)]*/
\ No newline at end of file
This diff is collapsed.
<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{379BC478-7D84-4E0E-A4B8-197905C824AE}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>Gnu.Getopt</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<RootNamespace>Gnu.Getopt</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>0.0</OldToolsVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DocumentationFile>Gnu.Getopt.xml</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE</DefineConstants>
<DocumentationFile>Gnu.Getopt.xml</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="System">
<Name>System</Name>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Getopt.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="LongOpt.cs">
<SubType>Code</SubType>
</Compile>
<EmbeddedResource Include="MessagesBundle.resx" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
\ No newline at end of file
This diff is collapsed.
/**************************************************************************
/* LongOpt.cs -- C#.NET port of Long option object for Getopt
/*
/* Copyright (c) 1998 by Aaron M. Renn (arenn@urbanophile.com)
/* C#.NET Port Copyright (c) 2004 by Klaus Prückl (klaus.prueckl@aon.at)
/*
/* This program is free software; you can redistribute it and/or modify
/* it under the terms of the GNU Library General Public License as published
/* by the Free Software Foundation; either version 2 of the License or
/* (at your option) any later version.
/*
/* This program is distributed in the hope that it will be useful, but
/* WITHOUT ANY WARRANTY; without even the implied warranty of
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
/* GNU Library General Public License for more details.
/*
/* You should have received a copy of the GNU Library General Public License
/* along with this program; see the file COPYING.LIB. If not, write to
/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
/* Boston, MA 02111-1307 USA
/**************************************************************************/
using System;
using System.Configuration;
using System.Globalization;
using System.Reflection;
using System.Resources;
using System.Text;
namespace Gnu.Getopt
{
/// <summary>
/// Constant enumeration values used for the LongOpt <c>hasArg</c>
/// constructor argument.
/// </summary>
public enum Argument
{
/// <summary>
/// This value indicates that the option takes no argument.
/// </summary>
No = 0,
/// <summary>
/// This value indicates that the option takes an argument that is
/// required.
/// </summary>
Required = 1,
/// <summary>
/// This value indicates that the option takes an argument that is
/// optional.
/// </summary>
Optional = 2
}
/// <summary>
/// This object represents the definition of a long option in the C# port
/// of GNU getopt. An array of LongOpt objects is passed to the
/// <see cref="Getopt"/> object to define the list of valid long options
/// for a given parsing session. Refer to the <see cref="Getopt"/>
/// documentation for details on the format of long options.
/// </summary>
/// <seealso cref="Getopt">Getopt</seealso>
/// <author>Aaron M. Renn (arenn@urbanophile.com)</author>
/// <author>Klaus Prückl (klaus.prueckl@aon.at)</author>
public class LongOpt
{
#region Instance Variables
/// <summary>
/// The name of the long option.
/// </summary>
private string name;
/// <summary>
/// Indicates whether the option has no argument, a required argument,
/// or an optional argument.
/// </summary>
private Argument hasArg;
/// <summary>
/// If this variable is not null, then the value stored in <c>val</c>
/// is stored here when this long option is encountered. If this is
/// null, the value stored in <c>val</c> is treated as the name of an
/// equivalent short option.
/// </summary>
private StringBuilder flag;
/// <summary>
/// The value to store in <c>flag</c> if flag is not null, otherwise
/// the equivalent short option character for this long option.
/// </summary>
private int val;
/// <summary>
/// The localized strings are kept in the resources, which can be
/// accessed by the <see cref="ResourceManager"/> class.
/// </summary>
private ResourceManager resManager = new ResourceManager(
"Gnu.Getopt.MessagesBundle", Assembly.GetExecutingAssembly());
/// <summary>
/// The current UI culture (set to en-US when posixly correctness is
/// enabled).
/// </summary>
private CultureInfo cultureInfo = CultureInfo.CurrentUICulture;
#endregion
#region Constructors
/// <summary>
/// Create a new LongOpt object with the given parameter values. If the
/// value passed as <paramref name="hasArg"/> is not valid, then an
/// <see cref="ArgumentException"/> is thrown.
/// </summary>
/// <param name="name">
/// The long option string.
/// </param>
/// <param name="hasArg">
/// Indicates whether the option has no argument
/// (<see cref="Argument.No"/>), a required argument
/// (<see cref="Argument.Required"/>) or an optional argument
/// (<see cref="Argument.Optional"/>).
/// </param>
/// <param name="flag">
/// If non-null, this is a location to store the value of
/// <paramref name="val"/> when this option is encountered, otherwise
/// <paramref name="val"/> is treated as the equivalent short option
/// character.
/// </param>
/// <param name="val">
/// The value to return for this long option, or the equivalent single
/// letter option to emulate if flag is null.
/// </param>
/// <exception cref="System.ArgumentException">
/// Is thrown if the <paramref name="hasArg"/> param is not one of
/// <see cref="Argument.No"/>, <see cref="Argument.Required"/> or
/// <see cref="Argument.Optional"/>.
/// </exception>
public LongOpt(string name, Argument hasArg, StringBuilder flag,
int val)
{
// Check for application setting "Gnu.PosixlyCorrect" to determine
// whether to strictly follow the POSIX standard. This replaces the
// "POSIXLY_CORRECT" environment variable in the C version
try
{
if((bool) new AppSettingsReader().GetValue(
"Gnu.PosixlyCorrect", typeof(bool)))
{
this.cultureInfo = new CultureInfo("en-US");
}
}
catch(Exception)
{
}
// Validate hasArg
if ((hasArg != Argument.No) && (hasArg != Argument.Required) &&
(hasArg != Argument.Optional))
{
object[] msgArgs = new object[]{hasArg};
throw new System.ArgumentException(string.Format(
this.resManager.GetString("getopt.invalidValue",
this.cultureInfo), msgArgs));
}
// Store off values
this.name = name;
this.hasArg = hasArg;
this.flag = flag;
this.val = val;
}
#endregion
/// <summary>
/// Returns the name of this LongOpt as a string
/// </summary>
/// <returns>
/// The name of the long option
/// </returns>
public string Name
{
get { return this.name; }
}
/// <summary>
/// Returns the value set for the <c>hasArg</c> field for this long
/// option.
/// </summary>
/// <returns>
/// The value of <c>hasArg</c>.
/// </returns>
public Argument HasArg
{
get { return this.hasArg; }
}
/// <summary>
/// Returns the value of the <c>flag</c> field for this long option.
/// </summary>
/// <returns>
/// The value of <c>flag</c>.
/// </returns>
public StringBuilder Flag
{
get { return this.flag; }
}
/// <summary>
/// Returns the value of the <c>val</c> field for this long option.
/// </summary>
/// <returns>
/// The value of <c>val</c>.
/// </returns>
public int Val
{
get { return this.val; }
}
} // Class LongOpt
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="ResMimeType">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="Version">
<value>1.0.0.0</value>
</resheader>
<resheader name="Reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="Writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="getopt.ambigious">
<value>{0}: option ''{1}'' is ambiguous</value>
</data>
<data name="getopt.arguments1">
<value>{0}: option ''--{1}'' doesn't allow an argument</value>
</data>
<data name="getopt.arguments2">
<value>{0}: option ''{1}{2}'' doesn't allow an argument</value>
</data>
<data name="getopt.requires">
<value>{0}: option ''{1}'' requires an argument</value>
</data>
<data name="getopt.unrecognized">
<value>{0}: unrecognized option ''--{1}''</value>
</data>
<data name="getopt.unrecognized2">
<value>{0}: unrecognized option ''{1}{2}''</value>
</data>
<data name="getopt.invalid">
<value>{0}: invalid option -- {1}</value>
</data>
<data name="getopt.illegal">
<value>{0}: illegal option -- {1}</value>
</data>
<data name="getopt.requires2">
<value>{0}: option requires an argument -- {1}</value>
</data>
<data name="getopt.invalidValue">
<value>Invalid value {0} for parameter 'has_arg' </value>
</data>
</root>
\ No newline at end of file
/home/assert/GitHub/taste-MSC/Gnu.Getopt/obj/Debug/Gnu.Getopt.MessagesBundle.resources
/home/assert/GitHub/taste-MSC/Gnu.Getopt/bin/Debug/Gnu.Getopt.dll.mdb
/home/assert/GitHub/taste-MSC/Gnu.Getopt/bin/Debug/Gnu.Getopt.dll
/home/assert/GitHub/taste-MSC/Gnu.Getopt/obj/Debug/Gnu.Getopt.dll
/home/assert/GitHub/taste-MSC/Gnu.Getopt/obj/Debug/Gnu.Getopt.dll.mdb

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSC-Antlr3", "MSC-Antlr3\MSC-Antlr3.csproj", "{56776F95-72A0-45DF-9F7A-C087E46E0AFE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gnu.Getopt", "Gnu.Getopt\Gnu.Getopt.csproj", "{379BC478-7D84-4E0E-A4B8-197905C824AE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{56776F95-72A0-45DF-9F7A-C087E46E0AFE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{56776F95-72A0-45DF-9F7A-C087E46E0AFE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{56776F95-72A0-45DF-9F7A-C087E46E0AFE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{56776F95-72A0-45DF-9F7A-C087E46E0AFE}.Release|Any CPU.Build.0 = Release|Any CPU
{379BC478-7D84-4E0E-A4B8-197905C824AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{379BC478-7D84-4E0E-A4B8-197905C824AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{379BC478-7D84-4E0E-A4B8-197905C824AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{379BC478-7D84-4E0E-A4B8-197905C824AE}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
bin
obj
*pyc
msc2py.exe
test
Aadl2.tokens
DeploymentView.aadl
interfaceview.aadl
interfaceview.aadl.sample
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
// vim: set expandtab:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Antlr.Runtime;
namespace MSC_Antlr3
{
class AntlrNoCaseFileStream : ANTLRFileStream
{
public AntlrNoCaseFileStream(string s) : base(s) { }
public override int LA(int i)
{
if (i == 0)
{
return 0; // undefined
}
if (i < 0)
{
i++; // e.g., translate LA(-1) to use offset 0
}
if ((p + i - 1) >= n)
{
return -1; // CharStream.EOF;
}
return Char.ToLower(data[p + i - 1]); //data[p + i - 1].ToString().ToLower().;
}
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<StartWorkingDirectory>C:\prj\MSC\DEVEL\MSC\MSC-Antlr3\MSC-Antlr3\</StartWorkingDirectory>
<StartArguments>-m recorded.msc -p a.py -i interfaceview.aadl</StartArguments>
</PropertyGroup>
</Project>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This repository contains the MSC functionality that is used by TASTE.
To build it:
cd MSC-Antlr3/
make
../../AutoGUI/TraceMSCs.glade
\ No newline at end of file
../../AutoGUI/tracer-inner.py
\ No newline at end of file
../../AutoGUI/tracer.py
\ No newline at end of file
../../AutoGUI/tracerCommon.py
\ No newline at end of file
../../AutoGUI/tracerGUI.py
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment