Micro programming language

Micro programming language

The Micro programming language is a very basic programming language used in teaching computer science students principles of compiler construction.

The language itself is built on top of an even more basic language called Tiny, which is also used in compiler construction courses. Among the features present in Micro, but not in Tiny, are IF statements, WHILE statements, variable declarations, floating point numbers, and the multiplication and division operators.

For those familiar with Pascal, certain similarities can be seen in Micro source code and also in how the language is handled by a compiler. These similarities include the fact that Pascal, Micro, and Tiny all use the same assignment operator, with the operator being the string ":=". Variable declarations in Micro are identical in structure to Pascal declarations, with the notable exception that Micro only supports two data types, namely INTEGER and REAL (the latter for floating point numbers).

Micro also follows a number of compilation rules that are utilised by Pascal. These include case-insensitivity ("Temp", "TEMP", and "temp" are all considered the same) and type-compatibility. The type-compatibility rules can be summed up in saying that an arithmetic expression will only evaluate to type INTEGER if all operands are of type INTEGER and no operators are '/' (division). Unless these two conditions are met, an arithmetic operation will return a value of type REAL.

While Micro provides a reasonable challenge to computer science students attempting to write a compiler (and it is certainly possible to write the front end of the compiler in a semester), the language itself is far too simplistic to be used for writing anything more complex than toy programs.

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Planner (programming language) — Planner (often seen in publications as PLANNER although it is not an acronym) is a programming language designed by Carl Hewitt at MIT, and first published in 1969. First, subsets such as Micro Planner and Pico Planner were implemented, and then… …   Wikipedia

  • Oxygene (programming language) — Oxygene Developer RemObjects Software Stable release 3.0.21 (August 29, 2009; 2 years ago (2009 08 29)) Influenced by Object Pas …   Wikipedia

  • Indus programming language — Indus is an object oriented programming language for Ubiquitous computing. The primary components of the Indus platform are a programming language to implement software agents, libraries to provide services to agents on a distributed network, and …   Wikipedia

  • Mesa (programming language) — Mesa Appeared in 1970s and 80s Developer Xerox PARC Typing discipline strongly typed Influenced by ALGOL Influenced Java, Modula 2, Cedar Mesa was an innovat …   Wikipedia

  • Java (programming language) — infobox programming language name = Java paradigm = Object oriented, structured, imperative year = 1995 designer = Sun Microsystems latest release version = Java Standard Edition 6 (1.6.0) latest release date = latest test version = latest test… …   Wikipedia

  • Ada (programming language) — For other uses of Ada or ADA, see Ada (disambiguation). Ada Paradigm(s) Multi paradigm Appeared in 1980 Designed by MIL STD 1815/Ada 83: Jean Ichbiah Ada 95: Tucker Taft Ada 2005: Tucker Taft Stable release …   Wikipedia

  • Pascal (programming language) — Pascal Paradigm(s) imperative, structured Appeared in 1970 Designed by Niklaus Wirth Typing discipline static, strong, safe …   Wikipedia

  • Lisp (programming language) — Infobox programming language name = Lisp paradigm = multi paradigm: functional, procedural, reflective generation = 3GL year = 1958 designer = John McCarthy developer = Steve Russell, Timothy P. Hart, and Mike Levin latest release version =… …   Wikipedia

  • Educational programming language — An educational programming language is a programming language that is designed primarily as a learning instrument and not so much as a tool for writing real world application programs.ome examplesChildren* AgentSheets is an award winning game and …   Wikipedia

  • Forth (programming language) — infobox programming language name = Forth paradigm = Procedural, stack oriented year = 1970s designer = Charles H. Moore typing = typeless dialects = colorForth, Open Firmware implementations = Forth, Inc., GNU Forth, MPE influenced by =… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”