Loading ...
Sorry, an error occurred while loading the content.

CamlLex/CamlYacc

Expand Messages
  • Adrien Henriet
    Hello, I am a beginners, and I ask for some help When you use Lex, you can use the directive BEGIN for a analyse (ex: expr* [ BEGIN(EXPR); return athing;]
    Message 1 of 1 , Sep 3, 2003
    • 0 Attachment
      Hello,

      I am a beginners, and I ask for some help

      When you use Lex, you can use the directive BEGIN for a analyse
      (ex:
      expr* [ BEGIN(EXPR); return athing;]

      <EXPR> ...
      )

      with ocamllex, you can use
      (
      lexer = parse .....

      with suite = parse ....
      )

      But, in this case, you have for example
      lexer = parse
      (t)* {athing; expr lexbuf}

      And here ocamllex answer me:
      This is type UNIT use with type Parser.token...

      So, i don't really understand.

      I am not very clear, but I don't know how to explain my problem.

      Thank you,
    Your message has been successfully submitted and would be delivered to recipients shortly.