Click here to Skip to main content
11,496,146 members (142 online)
Click here to Skip to main content
Add your own
alternative version

Writing your first Domain Specific Language, Part 2 of 2

, 3 Sep 2008 CPOL 44.5K 842 70
A guide to writing a compiler in .NET for beginners, using Irony.
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
FreightLanguageCompiler.zip
FreightLanguageCompiler
bin
Debug
FreightLanguageCompiler.dll
Irony.dll
Nodes
Properties
Irony.dll
ExampleSite
App_Data
Bin
FreightLanguageCompiler.dll
Irony.dll
FLSnippets
IronySnippets.snippet
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.21022</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{96EF562B-E459-4CD5-99F7-47C8E467BF76}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>FreightLanguageCompiler</RootNamespace>
    <AssemblyName>FreightLanguageCompiler</AssemblyName>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <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|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Irony, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\Irony.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Xml.Linq">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data.DataSetExtensions">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="FLCompiler.cs" />
    <Compile Include="FLGrammar.cs" />
    <Compile Include="IJavascriptGenerator.cs" />
    <Compile Include="Nodes\BinaryOperatorNode.cs" />
    <Compile Include="Nodes\ExpressionNode.cs" />
    <Compile Include="Nodes\FreightDeclarationNode.cs" />
    <Compile Include="Nodes\IfStatementNode.cs" />
    <Compile Include="Nodes\OrderLoopNode.cs" />
    <Compile Include="Nodes\ProgramNode.cs" />
    <Compile Include="Nodes\SetVariableNode.cs" />
    <Compile Include="Nodes\StatementListNode.cs" />
    <Compile Include="Nodes\StatementNode.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </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>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Daniel Flower
Software Developer
China China
Daniel has a Bachelor of Science with First Class Honours from the University of Auckland, and has designed and developed software in companies large and small.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150520.1 | Last Updated 3 Sep 2008
Article Copyright 2008 by Daniel Flower
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid