Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view examples/OCaml-Kaleidoscope/Chapter5/token.ml @ 128:c347d3398279 default tip
fix
author | mir3636 |
---|---|
date | Wed, 06 Dec 2017 14:37:17 +0900 |
parents | 95c75e76d11b |
children |
line wrap: on
line source
(*===----------------------------------------------------------------------=== * Lexer Tokens *===----------------------------------------------------------------------===*) (* The lexer returns these 'Kwd' if it is an unknown character, otherwise one of * these others for known things. *) type token = (* commands *) | Def | Extern (* primary *) | Ident of string | Number of float (* unknown *) | Kwd of char (* control *) | If | Then | Else | For | In