From 34a3a935cff1bfa2d867ef79bb5c57c8a23a8b41 Mon Sep 17 00:00:00 2001 From: b3b00 Date: Tue, 1 Jun 2021 12:58:10 +0200 Subject: [PATCH] 2.7.0.1 : API compat --- sly/parser/generator/ParserBuilder.cs | 6 +++++- sly/sly.csproj | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sly/parser/generator/ParserBuilder.cs b/sly/parser/generator/ParserBuilder.cs index dca6a1d4..8ae64de5 100644 --- a/sly/parser/generator/ParserBuilder.cs +++ b/sly/parser/generator/ParserBuilder.cs @@ -26,7 +26,7 @@ public class ParserBuilder where IN : struct public string I18n { get; set; } - public ParserBuilder(string i18n = null) + public ParserBuilder(string i18n) { if (string.IsNullOrEmpty(i18n)) { @@ -34,6 +34,10 @@ public ParserBuilder(string i18n = null) } I18n = i18n; } + + public ParserBuilder() : this(null) + { + } /// /// Builds a parser (lexer, syntax parser and syntax tree visitor) according to a parser definition instance diff --git a/sly/sly.csproj b/sly/sly.csproj index 2c9dcf57..d31c86f5 100644 --- a/sly/sly.csproj +++ b/sly/sly.csproj @@ -6,11 +6,11 @@ $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb #LY is a parser generator halfway between parser combinators and parser generator like ANTLR b3b00 - 2.7.0.0 + 2.7.0.1 https://github.com/b3b00/sly https://github.com/b3b00/sly https://github.com/b3b00/sly/blob/master/LICENSE - 2.7.0.0 + 2.7.0.1 Library