Measures Concepts
GitHub icon

Mary

Mary - Programming language

< >

Mary is a programming language created in 1970.

#920on PLDB 54Years Old

Mary was a programming language designed and implemented by RUNIT at Trondheim, Norway in the 1970s. It borrowed many features from ALGOL 68 but was designed for machine-oriented programming. An unusual feature of its syntax was that expressions were constructed using the conventional infix operators, but all of them had the same precedence and evaluation went from left to right unless there were brackets. Read more on Wikipedia...


Example from Wikipedia:
BEGIN INT i := 10; %% Variable with initial value. REF INT ri := i; %% Pointer initialized to point to i. INT j := 11; j :- REF INT =: ri; %% Type conversion and assignment %% ri now points to j. i =: (ri :- VAL REF INT); %% Assignment and type conversion %% ri points to j so j is changed. IF j > 10 %% Conditional statement with result THEN %% used inside an arithmetic expression. 1 ELSE 2 FI + j =: j; END

Language features

Feature Supported Token Example
Assignment ✓ :=
Comments ✓
% A comment
Line Comments ✓ %
% A comment
Strings ✓
"Hello world"
Print() Debugging ✓
Directives ✓
.PR POINT .PR
.PR UPPER .PR
.PR RES .PR
'pr' quote 'pr'
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout