Skip to content

Commit

Permalink
2.7.0.1 : API compat
Browse files Browse the repository at this point in the history
  • Loading branch information
b3b00 committed Jun 1, 2021
1 parent 8b7c7cf commit 34a3a93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion sly/parser/generator/ParserBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ public class ParserBuilder<IN, OUT> where IN : struct

public string I18n { get; set; }

public ParserBuilder(string i18n = null)
public ParserBuilder(string i18n)
{
if (string.IsNullOrEmpty(i18n))
{
i18n = CultureInfo.CurrentCulture.TwoLetterISOLanguageName;
}
I18n = i18n;
}

public ParserBuilder() : this(null)
{
}

/// <summary>
/// Builds a parser (lexer, syntax parser and syntax tree visitor) according to a parser definition instance
Expand Down
4 changes: 2 additions & 2 deletions sly/sly.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Description>#LY is a parser generator halfway between parser combinators and parser generator like ANTLR</Description>
<Authors>b3b00</Authors>
<version>2.7.0.0</version>
<version>2.7.0.1</version>
<PackageProjectUrl>https://github.com/b3b00/sly</PackageProjectUrl>
<RepositoryUrl>https://github.com/b3b00/sly</RepositoryUrl>
<PackageLicenseUrl>https://github.com/b3b00/sly/blob/master/LICENSE</PackageLicenseUrl>
<PackageVersion>2.7.0.0</PackageVersion>
<PackageVersion>2.7.0.1</PackageVersion>
<ApplicationIcon />
<OutputType>Library</OutputType>
<StartupObject />
Expand Down

0 comments on commit 34a3a93

Please sign in to comment.