On 14 Jun 2007, at 15:09, Alessandro Di Marco wrote:
One way around is feeding a UTF-8 .ly file to Flex, and require
that the
proper Unicode “...” be used, i.e. U+201C & U+201D. When U+201C
arrives, in
the lexer, start parsing a quotation string. If the closing U
+201D has not
Hans Aberg <[EMAIL PROTECTED]> writes:
On 14 Jun 2007, at 14:46, Alessandro Di Marco wrote:
> In american english sentences like the following ones are
> quite common:
>
> 1) "blah blah blah". Some more blah...
> 2) "blah blah blah." Some more blah...
> 3) "blah blah blah. S
On 14 Jun 2007, at 14:46, Alessandro Di Marco wrote:
In american english sentences like the following ones are
quite common:
1) "blah blah blah". Some more blah...
2) "blah blah blah." Some more blah...
3) "blah blah blah. Some more blah...
Now, the 3rd gives out the problem. For example, her
Tim Van Holder <[EMAIL PROTECTED]> writes:
Alessandro Di Marco wrote:
> text:
> /* empty */
>| text sentence
>;
>
> sentence:
> WORD EOL
>| DOUBLEQ WORD EOL
>| DOUBLEQ WORD EOL DOUBLEQ
>;
Well, without a clearer idea of what your g
Alessandro Di Marco wrote:
> Hi all.
>
> It seems that both the options above are valid, so they need
> disambiguation. I've tried '%dprec' (as also suggested in bison
manual), but
> without any success.
>
> For your convenience I have stripped down the grammar to the below few
lines,
> which produ
On 14 Jun 2007, at 12:48, Alessandro Di Marco wrote:
I was trying to create a GLR grammar for natural languages
Though your efforts are welcome, Flex/Bison are not made for parsing
natural languages, the problem is with sentences like
Time flies like an arrow, fruit flies like a banana.
w
OK, I forgot the attachment. Moreover, the below ambiguity arises with the
string: /"hello." people./ (without '/').
sorry.
Alessandro
demo.tgz
Description: Binary data
Alessandro Di Marco <[EMAIL PROTECTED]> writes:
Hi all.
I was trying to create a GLR grammar for natural languages w
Hi all.
I was trying to create a GLR grammar for natural languages when I stuck on the
following s/r ambiguity.
Ambiguity detected.
Option 1,
text ->
text ->
text
sentence ->
DOUBLEQ
WORD
EOL
sentence ->
DOUBLEQ
WORD
EOL