aboutsummaryrefslogtreecommitdiff
path: root/src/boot/fe/token.ml
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-14 10:52:32 -0700
committerGraydon Hoare <[email protected]>2010-09-14 10:52:32 -0700
commit7287d3aaa0545a9b22cea874f2d751de4fefd23d (patch)
treed35680fc38e9a559d466be476066bb34243415e2 /src/boot/fe/token.ml
parentUpdate manual to cover change to nominal tag items. (diff)
downloadrust-7287d3aaa0545a9b22cea874f2d751de4fefd23d.tar.xz
rust-7287d3aaa0545a9b22cea874f2d751de4fefd23d.zip
Teach front-end about simple, first-cut version of const items.
Diffstat (limited to 'src/boot/fe/token.ml')
-rw-r--r--src/boot/fe/token.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/boot/fe/token.ml b/src/boot/fe/token.ml
index 64aef2a4..e6f8cd4b 100644
--- a/src/boot/fe/token.ml
+++ b/src/boot/fe/token.ml
@@ -93,6 +93,7 @@ type token =
(* Value / stmt declarators *)
| LET
+ | CONST
(* Magic runtime services *)
| LOG
@@ -246,6 +247,7 @@ let rec string_of_tok t =
(* Value / stmt declarators. *)
| LET -> "let"
+ | CONST -> "const"
(* Magic runtime services *)
| LOG -> "log"