|Runtime "learning" email@example.com (Doru-Catalin Togea) (2001-10-27)|
|Re: Runtime "learning" firstname.lastname@example.org (2001-11-05)|
|Re: Runtime "learning" email@example.com (Thant Tessman) (2001-11-05)|
|Re: Runtime "learning" firstname.lastname@example.org (2001-11-08)|
|From:||Thant Tessman <email@example.com>|
|Date:||5 Nov 2001 00:09:39 -0500|
|Posted-Date:||05 Nov 2001 00:09:38 EST|
Doru-Catalin Togea wrote:
> What I am asking for is: Is there any tool which can take me a step
> further? Can it build an EXECUTABLE file, which, AT RUNTIME, learns
> a language by reading its grammar, and thus becames able to
> recognize (and take actions based on) sentances in that language?
Out of curiosity, do you plan on somehow dynamically building new
actions to associate with new productions? This is something I can't
imagine being easy in any non-functional programming language. And
without this ability, I have a hard time imagining how dynamically
modifying a grammar would be useful. Changing whether or not something
is considered a keyword by the lexer at runtime doesn't require
modifying the grammar itself, does it?
Also, what do you want to happen if a new production introduces an
ambiguity into your grammar?
[These problems were also solved 25 years ago. -John]
Return to the
Search the comp.compilers archives again.