Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 public ReplacementParser(MarkdownGrammar grammar)
 {
     this.grammar      = grammar;
     this.replacements = new Dictionary <string, IMarkdownReplacement>();
 }
Ejemplo n.º 3
0
		public void SetUp()
		{
			grammar = new MarkdownGrammar();
			deep = new MarkdownDeep.Markdown();
		}