Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Шевырин Никита #229

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
883f607
created project Markdown
alexadralt Nov 23, 2024
c1f6b4d
initial design
alexadralt Nov 24, 2024
09601ae
initial design
alexadralt Nov 30, 2024
f27204e
added ArgumentExceptionHelpers
alexadralt Nov 30, 2024
bc62038
implemented abstract syntax tree
alexadralt Nov 30, 2024
f0d106e
did some syntax tree testing
alexadralt Nov 30, 2024
106f113
tokenizer WIP
alexadralt Dec 2, 2024
8de5081
addded tests for Md
alexadralt Dec 2, 2024
6e53af2
deleted tree tests
alexadralt Dec 2, 2024
b67b916
added usage example
alexadralt Dec 2, 2024
ae81615
implementation WIP 1
alexadralt Nov 30, 2024
9005981
renamed IMdTest to IMdTests
alexadralt Dec 4, 2024
1ef1aa0
renamed files for refactoring
alexadralt Dec 6, 2024
887266f
refactored the whole thing
alexadralt Dec 7, 2024
5be7d46
added nesting syntax rule
alexadralt Dec 7, 2024
90e83aa
refactored nesting rule
alexadralt Dec 8, 2024
f106f80
added new syntax rules and fixed potential bugs
alexadralt Dec 8, 2024
8b6a4d8
added descriptions to tests
alexadralt Dec 8, 2024
8efaaf3
deleted files with old version of existing code
alexadralt Dec 8, 2024
8549226
removed old files
alexadralt Dec 8, 2024
b5df139
merged version 1.0
alexadralt Dec 8, 2024
f298b01
deleted old files
alexadralt Dec 8, 2024
9f42573
added factory method for Md
alexadralt Dec 11, 2024
75251ad
refactored MdTokenizer
alexadralt Dec 11, 2024
262d9a2
refactored syntax rules
alexadralt Dec 11, 2024
f7be964
moved private fields declarations
alexadralt Dec 14, 2024
96b2796
moved performance tests to a different project and added more test cases
alexadralt Dec 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
moved private fields declarations
alexadralt committed Dec 14, 2024
commit f7be9646e2a2980d7c7dc653ef354a572988e12f
6 changes: 3 additions & 3 deletions Markdown/Markdown/ParseTree/MdParseTree.cs
Original file line number Diff line number Diff line change
@@ -29,16 +29,16 @@ public Node(MdTokenType type,
public List<Node> Children { get; set; }
public Node? Parent { get; set; }
}

private readonly Node _root;
private Node _current;

public MdParseTree()
{
_root = new Node(MdTokenType.Document, true);
_current = _root;
}

private readonly Node _root;
private Node _current;

public ParseTreeNodeView<MdTokenType> CurrentToken =>
new(_current.Text, _current.Type, _current.Children.Count == 0, _current.Complete, _current.InsideWord);