|
I have a combined grammar (lexer and parser on the same file). How do I set the
filter = true
to the lexer?
Thanks
Started by Boo on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
And lexer grammar in two separate files ( EDIT : no, they can be put in one file, see chollida's answer):
FooParser.g parser grammar FooParser; parse : Number+ EOF ;
FooLexer.g lexer grammar- and lexer grammar in two separate....
|
|
Which is best free online/offline service/tool to check correctness of grammar of english content?
Started by Jitendra vyas on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
Online: Online Spelling, Grammar, and Thesaurus checking
Offline.
The grammar checker is very good.
|
|
Given the following code,
Choices choices = new Choices(); choices.Add(new GrammarBuilder(new SemanticResultValue("product", "<product/>"))); GrammarBuilder builder = new GrammarBuilder(); builder.Append(new SemanticResultKey("options", choices....
Started by Kim Major on
, 6 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
See http://www.w3.org/TR/speech....
The principle is that you load a main large grammar which has some.
This can be done first with some SRGS grammar files.
It sounds like you need to use some indirection, via the a grammar rule reference.
|
Ask your Facebook Friends
|
What about a good software to check grammar in English language?
Started by monkey_boys on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
SpellCheckPlus is a grammar checker that finds common spelling errors and grammatical mistakes in English.
|
|
>> I would like to say thank you to SilverHybrid for giving me permission to start this topic.
>> I would like to thank everyone at Newbies Come Here - Adopt A Newbie - Be A Newbie's Teacher (http://www.wolfquest.org/bb/viewtopic.php?f=2&t...
Started by Rhea on
, 15 posts
by 10 people.
Answer Snippets (Read the full thread at wolfquest):
:D I hope you
Grammar Help:
http:/....
Thanks, both of you.
If outside is so great, why have humans spent thousands I will apply as well~ Helping people with grammar is always a good thing.
People with grammar is always a good thing.
|
|
Is there a simple way to determine wether a grammar is LL1, LR0, SLR1... just from looking on the grammar without doing any complex analysis?
For instance: To decide wether a BNF Grammar is LL1 you have to calculate First and Follow sets first - which...
Started by Chris on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
With that out of the way:
You could write a parser... .
It is perfectly possible to write non-LL(1) grammars for languages for which an LL(1) grammar exists.
A grammar for it, you can only make statements about the grammar itself.
|
|
Is there any BNF grammar for regular expression?
Started by Julien Grenier on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can see one for Perl regexp (displayed a little more in detail here , as posted by edg )
http://www.faqts.com/knowledge_base/view.phtml/aid/25718/fid/200
See Formal language theory in the Wikipedia entry. .
|
|
Does anyone have any experience with a tool that generates test strings from a BNF grammar that could then be fed into a unit test?
Started by Rob Walker on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Processing language (perl/python/etc) to randomly generate sentences from a BNF grammar, and slightly more with this, of course, is that it can only generate strings in the grammar, and unless your grammar-free grammar).
|
|
Here's the grammar, which is supposed to describe a language of nested braces with commas as delimiters:
L ::= {L} | L,L |
A few more examples of strings I'd expect the grammar to accept and reject:
Accept:
{,{,,{,}},,{,}} {{{{}}}} {,{}}
Reject:
{}{} ...
Started by wkf on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
::= { L } L 1 | L 1
L 1 ::= ε | , L L 1
First of all, that grammar won't accept your first example.
|
|
Are there any existing C++ grammar files for ANTLR?
I'm looking to lex, not parse some C++ source code files.
I've looked on the ANTLR grammar page and it looks like there is one listed created by Sun Microsystems here .
However, it seems to be a generated...
Started by c14ppy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
About Antlr C++ grammar ?.
|