Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
6912da7
Dev version bump
nblumhardt Sep 4, 2020
09dbc8a
possible fix for Issue 162
MagicAndre1981 Oct 2, 2020
0c9fe27
Merge pull request #163 from MagicAndre1981/FixIssue162
nblumhardt Oct 7, 2020
f5c6af6
Add link to Justin Pealing guide
andreyleskov Oct 31, 2020
c8a3b0c
Merge pull request #164 from andreyleskov/AddJustingPealingGuide
nblumhardt Nov 2, 2020
57ff0bf
removed old TargetFrameworks ( sl5;net35;net40;net45;netstandard1.0 )…
MagicAndre1981 Jun 29, 2021
c36e5d6
added DefineConstants
MagicAndre1981 Jun 29, 2021
a801940
Dependency changes -> major version bump
nblumhardt Jul 5, 2021
c00ef70
Merge pull request #173 from MagicAndre1981/DropOldTargetFrameworks
nblumhardt Jul 5, 2021
f6a7a2a
Project, packaging, dependency updates
nblumhardt Jul 5, 2021
04554e7
Remove unused 'using' blocks
nblumhardt Jul 5, 2021
652c72e
Remove unused private set accessors
nblumhardt Jul 5, 2021
ee30214
Minor cleanup
nblumhardt Jul 5, 2021
9c57281
Merge pull request #176 from nblumhardt/more-project-updates
nblumhardt Jul 5, 2021
bbf8139
Update publishing key, update main branch
nblumhardt Jul 5, 2021
2d6dfa8
Update main branch
nblumhardt Jul 5, 2021
936ca30
implemented #174: added SourceLink
MagicAndre1981 Jul 6, 2021
5139af3
Remove comments
nblumhardt Jul 30, 2021
3f3d153
Merge pull request #177 from MagicAndre1981/SourceLink
nblumhardt Jul 30, 2021
0fc2f4c
Improve Parse.Ref
marcin-golebiowski Sep 19, 2021
0a7bd6f
Change behavior of Parse.Ref -> throw ParseException only if memo con…
marcin-golebiowski Sep 20, 2021
9d1721b
Merge pull request #179 from marcin-golebiowski/fix-ref
nblumhardt Sep 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .idea/.idea.Sprache/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.idea.Sprache/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/.idea.Sprache/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea.Sprache/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.Sprache/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The best place to start is [this introductory article](http://nblumhardt.com/201
* [Parsing comma-separated values (CSV) into lists of strings](https://github.com/sprache/Sprache/blob/master/test/Sprache.Tests/Scenarios/CsvTests.cs)

**Tutorials** explaining Sprache:

* Overview of Sprache methods, [long guide by Justing Pealing](https://justinpealing.me.uk/post/2020-03-11-sprache1-chars/)
* A great [CodeProject article by Alexey Yakovlev ](http://www.codeproject.com/Articles/795056/Sprache-Calc-building-yet-another-expression-evalu) (and [in Russian](http://habrahabr.ru/post/228037/))
* Mike Hadlow's example of [parsing connection strings](http://mikehadlow.blogspot.com.au/2012/09/parsing-connection-string-with-sprache.html)
* Alexey Golub's article on [monadic parser combinators](https://tyrrrz.me/blog/monadic-parser-combinators) that shows how to build a JSON parser using Sprache
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ image: Visual Studio 2019

branches:
only:
- master
- main
- develop

pull_requests:
Expand All @@ -18,8 +18,8 @@ artifacts:
deploy:
- provider: NuGet
api_key:
secure: tCEhrNs1q8bhXiGwKejajsjSyF+/66LwnPge1ntZKrI3mvfDf1Ab8iOrz1IuVRH2
secure: LOSaZSy3ZL836xUIcCovdIt5kbL/aahbQPl2CvLCWxWaS+YSpKMB/OUAlbgLGp8Z
skip_symbols: true
artifact: /.*\.nupkg/
on:
branch: /^(master|develop)$/
branch: /^(main|develop)$/
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$branch = @{ $true = $env:APPVEYOR_REPO_BRANCH; $false = $(git symbolic-ref --short -q HEAD) }[$env:APPVEYOR_REPO_BRANCH -ne $NULL];
$revision = @{ $true = "{0:00000}" -f [convert]::ToInt32("0" + $env:APPVEYOR_BUILD_NUMBER, 10); $false = "local" }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];
$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)))-$revision"}[$branch -eq "master" -and $revision -ne "local"]
$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)))-$revision"}[$branch -eq "main" -and $revision -ne "local"]

echo "build: Version suffix is $suffix"

Expand Down
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 1 addition & 11 deletions samples/LinqyCalculator/LinqyCalculator.csproj
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net45;netcoreapp3.1</TargetFrameworks>
<AssemblyName>LinqyCalculator</AssemblyName>
<TargetFramework>net5.0</TargetFramework>
<OutputType>Exe</OutputType>
<PackageId>LinqyCalculator</PackageId>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Sprache\Sprache.csproj" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

</Project>
3 changes: 0 additions & 3 deletions samples/LinqyCalculator/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sprache;

namespace LinqyCalculator
Expand Down
19 changes: 0 additions & 19 deletions samples/LinqyCalculator/Properties/AssemblyInfo.cs

This file was deleted.

19 changes: 0 additions & 19 deletions samples/TinyTemplates.Tests/Properties/AssemblyInfo.cs

This file was deleted.

17 changes: 7 additions & 10 deletions samples/TinyTemplates.Tests/TinyTemplates.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
<AssemblyName>TinyTemplates.Tests</AssemblyName>
<PackageId>TinyTemplates.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand All @@ -16,9 +10,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.4.1" />
</ItemGroup>

</Project>
19 changes: 0 additions & 19 deletions samples/TinyTemplates/Properties/AssemblyInfo.cs

This file was deleted.

16 changes: 1 addition & 15 deletions samples/TinyTemplates/TinyTemplates.csproj
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Copyright>Copyright Sprache Contributors 2013</Copyright>
<AssemblyTitle>TinyTemplates</AssemblyTitle>
<VersionPrefix>2.0.0</VersionPrefix>
<Authors>Nicholas Blumhardt and Contributors</Authors>
<TargetFrameworks>net45;netstandard2.1</TargetFrameworks>
<AssemblyName>TinyTemplates</AssemblyName>
<PackageId>TinyTemplates</PackageId>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Sprache\Sprache.csproj" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion samples/XmlExample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Text;
using Sprache;
using System.IO;
using System.Xml;

namespace XmlExample
{
Expand Down
19 changes: 0 additions & 19 deletions samples/XmlExample/Properties/AssemblyInfo.cs

This file was deleted.

11 changes: 1 addition & 10 deletions samples/XmlExample/XmlExample.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>XmlExample</AssemblyName>
<TargetFramework>net5.0</TargetFramework>
<OutputType>Exe</OutputType>
<PackageId>XmlExample</PackageId>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>

<ItemGroup>
<None Include="App.config" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Sprache\Sprache.csproj" />
</ItemGroup>
Expand Down
3 changes: 0 additions & 3 deletions samples/XmlExample/app.config

This file was deleted.

7 changes: 1 addition & 6 deletions src/Sprache/CommentParser.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sprache
namespace Sprache
{
/// <summary>
/// Constructs customizable comment parsers.
Expand Down
7 changes: 1 addition & 6 deletions src/Sprache/IComment.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sprache
namespace Sprache
{
/// <summary>
/// Represents a customizable comment parser.
Expand Down
2 changes: 0 additions & 2 deletions src/Sprache/IInput.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sprache
{
Expand Down
2 changes: 1 addition & 1 deletion src/Sprache/Input.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Input : IInput
/// <summary>
/// Gets the list of memos assigned to the <see cref="Input" /> instance.
/// </summary>
public IDictionary<object, object> Memos { get; private set; }
public IDictionary<object, object> Memos { get; }

/// <summary>
/// Initializes a new instance of the <see cref="Input" /> class.
Expand Down
Loading