Measures Concepts
GitHub icon

Progol

Progol - Programming language

< >

Progol is a programming language created in 1993.

#4265on PLDB 31Years Old


Language features

Feature Supported Token Example
Binary Literals ✓
% 0b[01]+
Integers ✓
% \d\d?\'[a-zA-Z0-9]+
Floats ✓
% (\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?
Hexadecimals ✓
% 0x[0-9a-fA-F]+
Octals ✓
% 0o[0-7]+
Case Sensitivity ✓
Strings ✓
'Hello world'
MultiLine Comments ✓
/* A comment
*/
Print() Debugging ✓
Line Comments ✓
% A comment
Macros ✓
term_expansion(parent_child(Parent, Child),
             child_parent(Child, Parent)).
parent_child(trevor, simon).
% With the above definitions, we can query (even though the predicate child_parent/2 is nowhere explicitly defined in the code above):
?- child_parent(Child, Parent).
 Child = simon, Parent = trevor.
Type Inference ✓
Comments ✓
Case Insensitive Identifiers X
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