Skip to content

Commit

Permalink
Reorganization; DemoApp
Browse files Browse the repository at this point in the history
  • Loading branch information
Goran Siska committed Sep 30, 2011
1 parent 15d46cb commit 3a67c7c
Show file tree
Hide file tree
Showing 21 changed files with 236 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .hgignore
@@ -0,0 +1,57 @@
syntax: glob

*.*scc
*.FileListAbsolute.txt
*.aps
*.bak
*.[Cc]ache
*.clw
*.eto
*.exe
*.fb6lck
*.fbl6
*.fbpInf
*.ilk
*.lib
*.log
*.ncb
*.nlb
*.obj
*.patch
*.pch
*.pdb
*.plg
*.[Pp]ublish.xml
*.rdl.data
*.sbr
*.scc
*.sig
*.sqlsuo
*.suo
*.svclog
*.tlb
*.tlh
*.tli
*.tmp
*.user
*.vshost.*
*DXCore.Solution
*_i.c
*_p.c
*.trx
Ankh.Load
Backup*
CVS/
PrecompiledWeb/
UpgradeLog*.*
[Bb]in/
[Dd]ebug/
[Oo]bj/
[Rr]elease/
[Tt]humbs.db
_UpgradeReport_Files
_[Rr]e[Ss]harper.*/
hgignore[.-]*
ignore[.-]*
svnignore[.-]*
lint.db
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 42 additions & 0 deletions Rxrdg.sln
@@ -0,0 +1,42 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RxrdgDemoApp", "RxrdgDemoApp\RxrdgDemoApp.csproj", "{2A7D491B-1570-4BFA-88EF-4C7A10654C59}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RegularExpressionDataGenerator", "RegularExpressionRandomDataGenerator\RegularExpressionDataGenerator.csproj", "{E22A2421-927D-4873-8987-CA6EDDA48A3B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2A7D491B-1570-4BFA-88EF-4C7A10654C59}.Debug|Any CPU.ActiveCfg = Debug|x86
{2A7D491B-1570-4BFA-88EF-4C7A10654C59}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{2A7D491B-1570-4BFA-88EF-4C7A10654C59}.Debug|Mixed Platforms.Build.0 = Debug|x86
{2A7D491B-1570-4BFA-88EF-4C7A10654C59}.Debug|x86.ActiveCfg = Debug|x86
{2A7D491B-1570-4BFA-88EF-4C7A10654C59}.Debug|x86.Build.0 = Debug|x86
{2A7D491B-1570-4BFA-88EF-4C7A10654C59}.Release|Any CPU.ActiveCfg = Release|x86
{2A7D491B-1570-4BFA-88EF-4C7A10654C59}.Release|Mixed Platforms.ActiveCfg = Release|x86
{2A7D491B-1570-4BFA-88EF-4C7A10654C59}.Release|Mixed Platforms.Build.0 = Release|x86
{2A7D491B-1570-4BFA-88EF-4C7A10654C59}.Release|x86.ActiveCfg = Release|x86
{2A7D491B-1570-4BFA-88EF-4C7A10654C59}.Release|x86.Build.0 = Release|x86
{E22A2421-927D-4873-8987-CA6EDDA48A3B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E22A2421-927D-4873-8987-CA6EDDA48A3B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E22A2421-927D-4873-8987-CA6EDDA48A3B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{E22A2421-927D-4873-8987-CA6EDDA48A3B}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{E22A2421-927D-4873-8987-CA6EDDA48A3B}.Debug|x86.ActiveCfg = Debug|Any CPU
{E22A2421-927D-4873-8987-CA6EDDA48A3B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E22A2421-927D-4873-8987-CA6EDDA48A3B}.Release|Any CPU.Build.0 = Release|Any CPU
{E22A2421-927D-4873-8987-CA6EDDA48A3B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{E22A2421-927D-4873-8987-CA6EDDA48A3B}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{E22A2421-927D-4873-8987-CA6EDDA48A3B}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
40 changes: 40 additions & 0 deletions RxrdgDemoApp/Program.cs
@@ -0,0 +1,40 @@
using System;

namespace RxrdgDemoApp
{
class Program
{
static void Main(string[] args)
{
while (true)
{
Console.WriteLine("Enter regular expression to generate random sequence or leave empty to quit:");
var param = Console.ReadLine();

if(string.IsNullOrEmpty(param)) { return; }

try
{
var rxrdg = new RegularExpressionDataGenerator.RegExpDataGenerator(param);

//show tree
Console.WriteLine();
Console.WriteLine(RegularExpressionDataGenerator.XmlVisitor.Visit(new RegularExpressionDataGenerator.Parser().Parse(param)));
Console.WriteLine("-------");
Console.WriteLine();

//output 10 examples
for (var i = 0; i < 10; i++)
{
Console.WriteLine(rxrdg.Next());
}
}
catch (Exception)
{
Console.WriteLine("Regular expression sequence not recognized.");
Console.WriteLine();
}
}
}
}
}
36 changes: 36 additions & 0 deletions RxrdgDemoApp/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// 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("RxrdgDemoApp")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("RxrdgDemoApp")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("37645b76-d3c8-40c1-8b2b-6bf712d2ed13")]

// 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 Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
61 changes: 61 additions & 0 deletions RxrdgDemoApp/RxrdgDemoApp.csproj
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{2A7D491B-1570-4BFA-88EF-4C7A10654C59}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RxrdgDemoApp</RootNamespace>
<AssemblyName>RxrdgDemoApp</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\RegularExpressionRandomDataGenerator\RegularExpressionDataGenerator.csproj">
<Project>{E22A2421-927D-4873-8987-CA6EDDA48A3B}</Project>
<Name>RegularExpressionDataGenerator</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

0 comments on commit 3a67c7c

Please sign in to comment.