Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
b3b00 committed Jun 7, 2024
1 parent f3864b0 commit 9763878
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace csly.indentedWhileLang.parser
{
[UseMemoization]
[AutoCloseIndentations]
[ParserRoot("program")]
public class IndentedWhileParserGeneric
{
#region COMPARISON OPERATIONS
Expand Down
5 changes: 5 additions & 0 deletions src/samples/SimpleExpressionParser/SimpleExpressionParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@

namespace simpleExpressionParser
{
[ParserRoot("root")]
public class SimpleExpressionParser
{

[Production("root : SimpleExpressionParser_expressions")]
public double Root(double value) => value;

[Operation((int) ExpressionToken.PLUS, Affix.InFix, Associativity.Right, 10)]
[Operation("MINUS", Affix.InFix, Associativity.Left, 10)]
public double BinaryTermExpression(double left, Token<ExpressionToken> operation, double right)
Expand Down
1 change: 1 addition & 0 deletions src/samples/XML/MinimalXmlParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

namespace XML
{
[ParserRoot("document")]
public class MinimalXmlParser
{

Expand Down
1 change: 1 addition & 0 deletions src/samples/jsonparser/EbnfJsonGenericParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
namespace jsonparser
{
[BroadenTokenWindow]
[ParserRoot("root")]
public class EbnfJsonGenericParser
{
#region root
Expand Down

0 comments on commit 9763878

Please sign in to comment.