Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
b3b00 committed Oct 14, 2024
1 parent e66af5a commit 6260c6f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/sly/lexer/TokenChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ public class TokenChannel<IN> where IN : struct

private List<Token<IN>> _notNullTokens;

public List<Token<IN>> NotNullTokens => _notNullTokens;

private List<Token<IN>> _notNullOrEosTokens;
public List<Token<IN>> NotNullOrEosTokens => _notNullOrEosTokens;

Expand Down
2 changes: 0 additions & 2 deletions src/sly/parser/generator/ParserConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ public void AddNonTerminalIfNotExists(NonTerminal<IN> nonTerminal)
if (!NonTerminals.ContainsKey(nonTerminal.Name)) NonTerminals[nonTerminal.Name] = nonTerminal;
}

public bool HasExplicitTokens() => GetAllExplicitTokenClauses().Any();

public List<TerminalClause<IN>> GetAllExplicitTokenClauses()
{
List<TerminalClause<IN>> clauses = new List<TerminalClause<IN>>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ public interface IConcreteSyntaxTreeVisitor<IN,OUT> where IN : struct
OUT VisitOptionNode(bool exists, OUT child);
OUT VisitNode(SyntaxNode<IN> node, IList<OUT> children);
OUT VisitManyNode(ManySyntaxNode<IN> node, IList<OUT> children);

OUT VisitEpsilon();
OUT VisitLeaf(Token<IN> token);
}
}
2 changes: 0 additions & 2 deletions src/sly/parser/parser/SyntaxParseResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ public class SyntaxParseResult<IN> where IN : struct
{
public ISyntaxNode<IN> Root { get; set; }

public bool IsEpsilon => Root.IsEpsilon;

public bool IsError { get; set; }

public bool IsOk => !IsError;
Expand Down

0 comments on commit 6260c6f

Please sign in to comment.