[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
What is wrong?
I'm trying to parse..
### BEGIN TEXT
Metro Principle - Quick Start
h3. 1. Introduction
*Important!!* Take note of the following before reading the rest of this document
### END TEXT
with this parser...
### BEGIN GRAMMAR
Package confluence.compiler;
Helpers
unicode_input_character = [0..0xffff];
tab = 9;
lf = 10;
cr = 12;
space = ' ';
nl = lf | cr | lf cr;
input_character = [unicode_input_character-[cr+lf]];
input_character_nospace = [input_character-space];
Tokens
strong = '*';
emphasis = '_';
citation = '??';
deleted = '-';
inserted = '+';
superscript = '^';
subscript = '~';
span = '%';
monospaced_begin = '{{';
monospaced_end = '}}';
blockquote = 'bq.';
text = input_character+;
word = input_character_nospace+;
new_line = nl;
space = space;
Productions
content = {content} component+;
component =
{paragraph} paragraph+ new_line+;
paragraph = word optional_word*;
optional_word = space+ word;
### END GRAMMAR
and get this "confluence.compiler.parser.ParserException: [1,1] expecting: word"
Why isn't it matching word?
--
Paul Rene