Example #1
0
 public void Initialize(MarkdownGrammar grammar)
 {
     this.grammar            = grammar;
     sharedReplacements      = GetReplacements().ToArray();
     sharedReplacementParser = new ReplacementParser(grammar);
     sharedReplacementParser.Add(sharedReplacements);
     replacements = new ReplacementParser(grammar);
     replacements.Add(sharedReplacements, false);
     replacements.Add(Terminals.AnyChar);
     Inner = +replacements;
     SetError <Parser>(false);
 }
Example #2
0
 public ReplacementParser(MarkdownGrammar grammar)
 {
     this.grammar      = grammar;
     this.replacements = new Dictionary <string, IMarkdownReplacement>();
 }
		public void SetUp()
		{
			grammar = new MarkdownGrammar();
			deep = new MarkdownDeep.Markdown();
		}