Skip to content

Commit

Permalink
Big changes to make Base and some others work in Mozart 2.
Browse files Browse the repository at this point in the history
This commit is actually a manual merge of the code we wrote by
bits for Mozart2. That history is not included here because the
branches were in two separate repos with no common ancestor commit.
It's just safer not to introduce multiple roots in this repo.

The history of these commits is still available in the main repo.
The code that is now here was located under directory lib/.
  • Loading branch information
sjrd committed Aug 1, 2012
1 parent cbc525b commit bffa726
Show file tree
Hide file tree
Showing 35 changed files with 1,773 additions and 568 deletions.
18 changes: 16 additions & 2 deletions base/Atom.oz
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,19 @@
%%
%% Module
%%
Atom = atom(is: IsAtom
toString: AtomToString)

fun {AtomToUnicodeString A}
if {IsAtom A} then
{VirtualString.toUnicodeString A}
else
raise typeError('Atom' A) end
end
end

fun {AtomToString A}
{UnicodeString.toString {AtomToUnicodeString A}}
end

Atom = atom(is: IsAtom
toUnicodeString: AtomToUnicodeString
toString: AtomToString)
Loading

0 comments on commit bffa726

Please sign in to comment.