-
Notifications
You must be signed in to change notification settings - Fork 0
/
SLang-Metrics.csproj
52 lines (52 loc) · 2.11 KB
/
SLang-Metrics.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build">
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net40</TargetFramework>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Compile Include="src\Program.cs" />
<Compile Include="src\ShiftReduceParser\ShiftReduceParserCode.cs" />
<Compile Include="src\SLangLookaheadScanner.cs" />
<Compile Include="src\LanguageElements.cs" />
<Compile Include="src\MetricCollector.cs" />
<Compile Include="src\TreeTraverse.cs" />
<Compile Include="src\UnitTests\Testing.cs" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
<ItemGroup>
<Lex Include="grammars\SLangScanner.lex" />
<Compile Include="src\SLangScanner.cs">
<DependentUpon>src\SLangScanner.lex</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Yacc Include="grammars\SLangParser.y" />
<Compile Include="src\SLangParser.cs">
<DependentUpon>src\SLangParser.y</DependentUpon>
</Compile>
</ItemGroup>
<PropertyGroup>
<CoreCompileDependsOn>GenerateParser;$(CoreCompileDependsOn)</CoreCompileDependsOn>
<CoreCompileDependsOn>GenerateLexer;$(CoreCompileDependsOn)</CoreCompileDependsOn>
<UseHostCompilerIfAvailable>false</UseHostCompilerIfAvailable>
</PropertyGroup>
<Target Name="GenerateLexer" Inputs="@(Lex)" Outputs="@(Lex->'%(Filename).cs')">
<Exec Command="$(SolutionDir)tools\gplex.exe %(Lex.Identity)" />
<CreateItem Include="%(Lex.Filename).cs">
<Output TaskParameter="Include" ItemName="FileWrites" />
</CreateItem>
</Target>
<Target Name="GenerateParser" Inputs="@(Yacc)" Outputs="@(Yacc->'%(Filename).cs')">
<Exec Command="$(SolutionDir)tools\gppg.exe /gplex /conflicts %(Yacc.Identity)" />
<CreateItem Include="%(Yacc.Filename).cs">
<Output TaskParameter="Include" ItemName="FileWrites" />
</CreateItem>
</Target>
</Project>