Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
3344
Browse files Browse the repository at this point in the history
  • Loading branch information
akkartik committed Sep 13, 2016
1 parent db01afa commit 17ec401
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions 018type_abbreviations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ void clear_type_abbreviations() {
//:: A few default abbreviations.

:(before "End Mu Types Initialization")
put(Type_abbreviations, "&", new type_tree("address"));
put(Type_abbreviations, "@", new type_tree("array"));
put(Type_abbreviations, "num", new type_tree("number"));
put(Type_abbreviations, "bool", new type_tree("boolean"));
put(Type_abbreviations, "char", new type_tree("character"));
put(Type_abbreviations, "&", new_type_tree("address"));
put(Type_abbreviations, "@", new_type_tree("array"));
put(Type_abbreviations, "num", new_type_tree("number"));
put(Type_abbreviations, "bool", new_type_tree("boolean"));
put(Type_abbreviations, "char", new_type_tree("character"));

:(scenario use_type_abbreviations_when_declaring_type_abbreviations)
type foo = &:num
Expand Down
3 changes: 3 additions & 0 deletions 058to_text.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
//: Later layers will allow us to override this to do something smarter for
//: specific types.

:(before "End Mu Types Initialization")
put(Type_abbreviations, "text", new_type_tree("address:array:character"));

:(before "End Primitive Recipe Declarations")
TO_TEXT,
:(before "End Primitive Recipe Numbers")
Expand Down
1 change: 0 additions & 1 deletion 061text.mu
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Some useful helpers for dealing with text (arrays of characters)
type text = address:array:character

def equal a:text, b:text -> result:boolean [
local-scope
Expand Down

0 comments on commit 17ec401

Please sign in to comment.