Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Commit

Permalink
Fix Utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Merllab committed Sep 15, 2010
1 parent 6da9cb0 commit 732d56a
Show file tree
Hide file tree
Showing 229 changed files with 41,154 additions and 158 deletions.
6 changes: 3 additions & 3 deletions Util/GPPG/Source/GPPG.sln
@@ -1,13 +1,13 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GPPG", "ParserGenerator\GPPG.csproj", "{827282D8-3E75-4545-A5E4-2406F0D3E184}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 2
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = http://tkbgitvstfat01:8080/
SccTeamFoundationServer = http://vstfdevdiv:8080/devdiv
SccLocalPath0 = .
SccProjectUniqueName1 = ParserGenerator\\GPPG.csproj
SccProjectName1 = ParserGenerator
Expand Down
73 changes: 10 additions & 63 deletions Util/GPPG/Source/ParserGenerator/GPPG.csproj
@@ -1,110 +1,57 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{827282D8-3E75-4545-A5E4-2406F0D3E184}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>gppg</AssemblyName>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Exe</OutputType>
<RootNamespace>gppg</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
<OldToolsVersion>3.5</OldToolsVersion>
<BaseAddress>285212672</BaseAddress>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>..\..\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DocumentationFile>
</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>
<UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>..\..\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE</DefineConstants>
<DocumentationFile>
</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>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="SemanticAction.cs" />
<Compile Include="CodeGenerator.cs" />
<Compile Include="Grammar.cs" />
<Compile Include="LALRGenerator.cs" />
<Compile Include="LR0Generator.cs" />
<Compile Include="Parser.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Parser.cs" />
<Compile Include="Precedence.cs" />
<Compile Include="Scanner.cs" />
<Compile Include="Main.cs" />
<Compile Include="ParserAction.cs" />
<Compile Include="Production.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Production.cs" />
<Compile Include="ProductionItem.cs" />
<Compile Include="Set.cs" />
<Compile Include="State.cs" />
<Compile Include="Symbol.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Symbol.cs" />
<Compile Include="Transition.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
Binary file removed Util/IronPython/IronMath.dll
Binary file not shown.
Binary file added Util/IronPython/IronPython.Modules.dll
Binary file not shown.
Binary file modified Util/IronPython/IronPython.dll
Binary file not shown.
25 changes: 25 additions & 0 deletions Util/IronPython/Lib/__future__.py
@@ -0,0 +1,25 @@
#####################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# This source code is subject to terms and conditions of the Microsoft Public License. A
# copy of the license can be found in the License.html file at the root of this distribution. If
# you cannot locate the Microsoft Public License, please send an email to
# ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
# by the terms of the Microsoft Public License.
#
# You must not remove this notice, or any other, from this software.
#
#
#####################################################################################

all_feature_names = ['nested_scopes', 'generators', 'division',
'absolute_import', 'with_statement', 'print_function',
'unicode_literals']

division=1
with_statement=1
generators=1
absolute_import=1
print_function=1
unicode_literals=1
91 changes: 91 additions & 0 deletions Util/IronPython/Lib/iptest/__init__.py
@@ -0,0 +1,91 @@
#####################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# This source code is subject to terms and conditions of the Microsoft Public License. A
# copy of the license can be found in the License.html file at the root of this distribution. If
# you cannot locate the Microsoft Public License, please send an email to
# ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
# by the terms of the Microsoft Public License.
#
# You must not remove this notice, or any other, from this software.
#
#
#####################################################################################

##IMPORTS######################################################################
import nt
import sys

##LOGGING######################################################################
from iptest.util import get_env_var

try:
import logging as l

__log_file = get_env_var("TMP") + "\\iptest.log"
l.basicConfig(level=l.DEBUG,
format="%(asctime)s %(levelname)-8s %(message)s",
filename=__log_file,
filemode="w+")
__temp_handler = l.StreamHandler(sys.stdout)
__temp_formatter = l.Formatter("%(asctime)s %(levelname)-8s %(message)s")
__temp_handler.setFormatter(__temp_formatter)
__temp_handler.setLevel(l.INFO)
l.getLogger().addHandler(__temp_handler)

#Hack needed because IP doesn't implement sys._getframe by default
if sys.platform!="win32":
l.getLogger().findCaller = lambda: ("Unknown", 0, "Unknown")
except:
#Fake the implementation of logging module under Silverlight
class __L(object):
def debug(self, stuff):
pass
def info(self, stuff):
print "INFO -", stuff
l = __L()


##COMMAND-LINE OPTIONS#########################################################
class options:
#Run test cases.
RUN_TESTS=True

#Indicates whether we should generate a test plan for IronPython from pydoc
#comments.
GEN_TEST_PLAN=False

#--help
if "--help" in sys.argv:
print """iptest is used to run IronPython tests.
Notes:
- ???
Typical usage would be:
ipy harness.py interop.net --plan
"""
sys.exit(0)

#--no_testing
if "--no_testing" in sys.argv:
options.RUN_TESTS = False
sys.argv.remove("--no_testing")

#--plan
if "--plan" in sys.argv:
options.GEN_TEST_PLAN = True
sys.argv.remove("--plan")

#Do a little post processing
if options.GEN_TEST_PLAN:
import pydoc

#Dump the flags
l.debug("sys.argv after processing: %s" % str(sys.argv))
l.debug("Command-line options:")
for x in [temp for temp in dir(options) if not temp.startswith("__")]:
y = eval("options." + x)
l.debug("\t%s = %s" % (x, y))
l.debug("")

0 comments on commit 732d56a

Please sign in to comment.