diff --git a/src/FarkleNeo/CharParser.cs b/src/FarkleNeo/CharParser.cs index 1934c313..c84dd6ff 100644 --- a/src/FarkleNeo/CharParser.cs +++ b/src/FarkleNeo/CharParser.cs @@ -14,11 +14,11 @@ namespace Farkle; /// The type of objects the parser produces in case of success. /// /// -/// This class extends with features like -/// swapping the parser's and -/// , getting the parser's -/// and representing parsers that will always fail -/// because of problems with the grammar. +/// This class is the replacement of the RuntimeFarkle class of Farkle 6. +/// It extends with features likeswapping the parser's +/// and , +/// getting the parser's and representing parsers that will +/// always fail because of problems with the grammar. /// /// /// s are immutable, stateless and thread-safe. @@ -87,7 +87,7 @@ private protected virtual CharParser WithSemanticProviderCore(Func /// - /// If the problem is in the grammar's lecical analysis tables, + /// If the problem is in the grammar's lexical analysis tables, /// the parser can be fixed by changing the tokenizer. /// /// diff --git a/src/FarkleNeo/Parser/ParserInputReader.cs b/src/FarkleNeo/Parser/ParserInputReader.cs index 4edd7d88..aa35e623 100644 --- a/src/FarkleNeo/Parser/ParserInputReader.cs +++ b/src/FarkleNeo/Parser/ParserInputReader.cs @@ -14,7 +14,7 @@ namespace Farkle.Parser; /// or (not supported by Farkle's built-in /// parsers). /// -/// This type is the replacement of the Farkle.IO.CharStream code of Farkle 6. +/// This type is the replacement of the Farkle.IO.CharStream class of Farkle 6. /// Contrary to that, this is a mutable ref struct that must be passed around by /// reference and cannot be placed on the heap. /// diff --git a/src/FarkleNeo/Parser/Tokenizers/ChainedTokenizerBuilder.cs b/src/FarkleNeo/Parser/Tokenizers/ChainedTokenizerBuilder.cs index 6f0e4670..9810ad3e 100644 --- a/src/FarkleNeo/Parser/Tokenizers/ChainedTokenizerBuilder.cs +++ b/src/FarkleNeo/Parser/Tokenizers/ChainedTokenizerBuilder.cs @@ -123,7 +123,11 @@ public ChainedTokenizerBuilder Add(ChainedTokenizerBuilder builder /// given in /// and . /// This parameter is optional if no such delegates have been added. - /// The tokenizer to use in place of or . + /// The tokenizer to use in place of + /// or . + /// is + /// and the builder contains a grammar-dependent tokenizer, or + /// is and the builder contains the default tokenizer. public Tokenizer Build(IGrammarProvider? grammar = null, Tokenizer? defaultTokenizer = null) { var builder = ImmutableArray.CreateBuilder>(_items.Count);