using define-lex

Arnab Chakraborty <[email protected]> Tue, 27 Oct 2015 21:53:38 +0530
Newsgroups gmane.emacs.semantic
Message-ID <CAM3RRn2YjUrUoMNfxgKDRA2qJCKRDdKrNoamm3QbojLuPqaBDQ@mail.gmail.com>
Hello,

   I know about grammars and bison, but am new to semantic and wisent.
After some effort I have managed to write a simple test grammar that I
could successfully feed into wisent-grammar-compile and the output passes
wisent-automaton-p test.
Now I want to apply wisent-parse to it. For this I need a LEXER which is
supposed to be a function with 0 argument that returns the next token. I
could successfully write one from scratch.

  However, I want to use something like define-lex to construct the lexer
automatically. Here I have the following problem:

  define-lex produces a lexer that has two compulsory arguments START and
END, while the requirement of wisent-parser is a lexer with NO argument.

Now can I convert the lexer produced by define-lex into one suitable for
wisent-parse? I looked through the python parser file
in the semantic/wisent folder. But it is not using wisent-parse anywhere,
this dos not get me anywhre.

Any help, please?

Also, must wisent always be used in the semantic framework, or may I use it
independently also?



Thanks and regards,

Arnab

------------------------------------------------------------------------------

_______________________________________________
cedet-semantic mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-semantic