I\'m trying to follow Appel\'s \"Modern Compiler Implementation in ML\" and am writing the lexer using Ocamllex.
I have worked on the static analysis on Python source code recently. There is already a static analyzer written in Ocaml for CIL(C Intermediate Language) in our group. We want to reuse this analyzer,
I am at the end of my rope here. I cannot get anything to work in ocamllex, and it is driving me nuts. This is my .mll file:
I\'ve been working on a Lua fslex lexer in my spare time, using the ocamllex manual as a reference. I hit a few snags while trying to tokenize long strings correctly. \"Long strings\" are delimited b
Is there any way to return multiple tokens in OCamlLe开发者_如何学Cx? I\'m trying to write a lexer and parser for an indentation based language, and I would like my lexer to return multiple DEDENT to