This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
9
unikernel/duniverse/cppo/examples/lexer.mll
Normal file
9
unikernel/duniverse/cppo/examples/lexer.mll
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
(* Warning: ocamllex doesn't accept cppo directives
|
||||
within the rules section. *)
|
||||
rule token = parse
|
||||
['a'-'z']+ { `String (Lexing.lexeme lexbuf) }
|
||||
{
|
||||
#ifndef NOFOO
|
||||
let foo () = ()
|
||||
#endif
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue