From 244fc3d9aca11c8d6651620228c96cf64195b4bb Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 11 Jul 2015 19:36:54 -0700 Subject: 1762 - numbers without types = literals Quick hack for demo at balisp meetup today. --- 010vm.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/010vm.cc b/010vm.cc index 4edf59a7..27224f03 100644 --- a/010vm.cc +++ b/010vm.cc @@ -198,6 +198,10 @@ reagent::reagent(string s) :original_string(s), value(0), initialized(false) { } types.push_back(Type_ordinal[type]); } + if (is_integer(name) && types.empty()) { + types.push_back(0); + properties.at(0).second.push_back("literal"); + } if (name == "_" && types.empty()) { types.push_back(0); properties.at(0).second.push_back("dummy"); -- cgit 1.4.1-2-gfad0