encyclopegia.org

Mouse (programming language)

The Mouse (sometimes written as MOUSE) programming language is a small computer programming language developed by Dr. Peter Grogono in the late 1970s and early 1980s. It was developed as an extension of an earlier language called MUSYS, which was used to control digital and analog devices in an electronic music studio. Mouse was originally intended as a small, efficient language for microcomputers with limited memory. It is an interpreted, stack-based language and uses Reverse Polish notation. To make an interpreter as easy as possible to implement, Mouse is designed so that a program is processed as a stream of characters, interpreted one character at a time. The elements of the Mouse language consist of a set of (mostly) one-character symbols, each of which performs a specific function (see table below). Since variable names are limited to one character, there are only 26 possible variables in Mouse (named A-Z). Integers and characters are the only available data types. Despite these limits, Mouse includes a number of relatively advanced features, including: * Conditional branching * Loops * Pointers * Macros (subroutines (which may be recursive)) * Arrays * Code tracing The design of the Mouse language makes it ideal for teaching the design of a simple interpreter.…

The Mouse (sometimes written as MOUSE) programming language is a small computer programming language developed by Dr. Peter Grogono in the late 1970s and early 1980s. It was developed as an extension of an earlier language called MUSYS, which was used to control digital and analog devices in an electronic music studio. Mouse was originally intended as a small, efficient language for microcomputers with limited memory. It is an interpreted, stack-based language and uses Reverse Polish notation. To make an interpreter as easy as possible to implement, Mouse is designed so that a program is processed as a stream of characters, interpreted one character at a time. The elements of the Mouse language consist of a set of (mostly) one-character symbols, each of which performs a specific function (see table below). Since variable names are limited to one character, there are only 26 possible variables in Mouse (named A-Z). Integers and characters are the only available data types. Despite these limits, Mouse includes a number of relatively advanced features, including: Conditional branching Loops Pointers Macros (subroutines (which may be recursive)) Arrays Code tracing The design of the Mouse language makes it ideal for teaching the design of a simple interpreter. Much of the book describing Mouse is devoted to describing the implementation of two interpreters, one in Z80 assembly language, the other in Pascal. ====Input==== Mouse may input integers or characters. When a character is input, it is automatically converted to its ASCII code. ? X: ~ input a number and store into X ?' X: ~ input a character and store its ASCII code into X ====Output==== Mouse may print integers, characters, or string constants, as shown in these examples. If an exclamation point appears in a string constant, a new line is printed. X. ! ~ recall number X and print it X. !' ~ recall ASCII code X and print character "Hello" ~ print string "Hello" "Line 1!Line 2" ~ print strings "Line 1" and "Line 2" on two lines ====Conditionals==== A conditional statement has the general form: B [ S ] ~ equivalent to: if B then S Here B is an expression that evaluates to 1 (true) or 0 (false), and S is a sequence of statements. ====Loops==== Loops may have one of several forms. Most common are the forms: (B ^ S) ~ equivalent to: while B do S (S B ^) ~ equivalent to: repeat S until (not B) Here again B is a boolean value (0 or 1), and S is a sequence of statements. ====Macro calls==== The format of a macro (subroutine) call may be illustrated by the following example. Macro A in this example adds the two parameters passed to it from the main program, and returns the sum on the top of the stack. A,p1,p2; ~ call in main program to macro A ... $A 1% 2% + @ ~ macro A (add parameters p1 and p2) Here p1 and p2 are parameters passed to the macro. N. 10 - 0 = 10 N. 1 + N: ) $ ~ increment N and repeat loop ==Notes== ==External links== The Mouse Programming Language The Great MOUSE Programming Language Revival Mouse, the Language Mouse: Computer Programming Language (includes source code for Mouse interpreters) Information on sourceforge.net

References

No reference rows published for this article.

Cite this article

MLA

"Mouse (programming language)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/mouse-programming-language. Accessed 24 November 2026.

Chicago

"Mouse (programming language)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/mouse-programming-language.

APA

encyclopegia.org. (2026). Mouse (programming language). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/mouse-programming-language

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Crab-eating frog

enwiki · references available

John Shrapnel

enwiki · references available

Kendleton Independent School District

enwiki · references available

James H. Quillen College of Medicine

enwiki · references available

Soft sensor

enwiki · references available

New Wave Hot Dogs

enwiki · references available

Eddie Little

enwiki · references available

Scholae

enwiki · references available

Jaime Brockett

enwiki · references available

Albert F. Case Jr.

enwiki · references available

Bob Turner (ice hockey)

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1372406677 · 0.5 · snapshot enwiki-001372406677

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.