Export (0) Print
Expand All

The Microsoft code name "M" Modeling Language Specification - Glossary

Microsoft Corporation

November 2009

[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]

 [This documentation targets the Microsoft SQL Server Modeling CTP (November 2009) and is subject to change in future releases. Blank topics are included as placeholders.]

Sections:
1: Introduction to "M"
2: Lexical Structure
3: Text Pattern Expressions
4: Productions
5: Rules
6: Languages
7: Types
8: Computed and Stored Values
9: Expressions
10: Module
11: Attributes
12: Catalog
13: Standard Library
14: Glossary

14 Glossary

abstract

An abstract type describes properties common to many other types, but cannot itself be represented.

alias

An alias is a local name for a symbol defined in another module. An alias may be specified on an import.

ambiguity

An ambiguity results when the language processor cannot uniquely determine which of several constructors to run for a given segment of text because the segment is recognized by more than one production. The competing productions do not have to be in the same rule. Ambiguities are resolved by refactoring the grammar and applying precedence directives.

apply

A computed value is applied to its arguments to yield a new value.

arity

Arity is the number of arguments a computed value requires.

ascribe

Ascribing a type to a value requires that the value conform to the type and exposes the behaviors defined on that type.

binding

A pattern may be ascribed with a named variable scoped to the production. When that pattern matches a section of text, that section of text is bound to the variable for use the constructor.

collection

A collection is a container for zero or more values. The values in a collection are called elements. The same value may occur in a collection multiple times but have no order. This is also known as a bag or multiset.

comment

A comment is a sequence of characters in a compilation unit that is excluded from semantic analysis.

compilation unit

A compilation unit is an ordered sequence of Unicode characters that conform to the lexical and grammatical requirements.

concrete

A concrete type can be represented.

conflict

A conflict results whenever the language processor faces a choice in what action to take on a section of text. There are two sorts of conflicts: shift-reduce and reduce-reduce. Not all conflicts result in ambiguities because some conflicts are resolved by applying precedence directives and some conflicts are local. A local conflict means that the language processor faces multiple choices on a section of text, but in a larger context the only one collection of choices recognizes the text.

conform

Text conforms to a language if the text matches the Main rule.

constraint

A constraint is a logical test to determine if an element is a member of a collection.

constructor

A constructor defines the output for a production.

context-free

Context-free is a term from computer science to designate a class of languages. All languages in this class can be written with a single non-terminal on the left hand side of the rule and can be recognized with a push down automaton.

declaration

A declaration binds a symbol to a type or computed value.

default

A default is a value to be used unless no other is specified.

derived

A derived type is constraint over some other type.

dynamic

A dynamic quality is any quality which is not static.

element

An element is a value in a collection.

entity

An entity is a set of labeled values.

export

An export makes a symbol visible outside the module in which it was declared in. It is not visible within another module unless it is imported.

expression

An expression is a sequence of Unicode characters that conforms to the Expression production in the grammar. In general it consists of an operator and one or more operands. Applying the operator to the operand yields a new value.

extent

An extent is a location which holds a value at the module scope.

field

A field is a location which holds a value at the entity scope.

grammar

A grammar is a set of rules which determine if a sequence of characters conform to a language. As used in the specification these rules are context-free.

identifier

An identifier is a symbolic name for use in a program. Type names, formal parameters, module names, and names of computed values are all examples of identifiers.

identity

Identity is a value that implies equality between entities. The identity value can be used as a surrogate for the entity itself as in a reference.

import

An import brings a symbol defined in another module into scope in the current module. An import may be aliased.

initializer

An initializer in an expression that returns a collection or entity value.

instance

An instance is a value that conforms to an entity type.

interleave

Designating a rule interleave separates the sections of text recognized by the rule from normal language processing. These are used to define insignificant whitespace and comment rules.

intrinsic

Intrinsic definitions are part of the language and cannot be added to or extended by a library.

language

A language is a collection of rules potentially with a designated Main rule. If the language has a Main rule, and a text value matches that rule, then the text value conforms to the language or is recognized by the language. In this case, the output of the rule is the output of the language.

lexical

A lexical rule determines if a sequence of characters conform to a language. As used in this specification lexical rules are regular expressions and ambiguity is resolved by taking the longest match.

library

A library is an informal name for a commonly used collection of declarations.

literal

A literal is a sequence of characters that represent a simple value.

member

A member is a field or computed value within an entity scope.

module

A module is a container of extents, type, language and computed value declarations.

nominal type

Values in a nominal type system names the types they are members of. Also, subtypes name their and supertypes.

null

The value null is a distinct value that is used as a place holder.

operand

An operand is an expression used as an argument to an operator.

operator

An operator is a character or sequence of characters that is used in an expression to denote a computed value.

overloading

Overloading is giving the same symbol multiple interpretations within the same scope. The only form of overloading in M is on the number of arguments to a computed value.

parser

A parser is a language processor.

pattern

A pattern occurs on the left side of a production and recognizes text and potentially binds the text to a variable.

precedence

Precedence is a statement of preference between two choices available to the language processor.

prefix

A prefix is a section of a text value from the beginning of the value to an arbitrary point. Both the empty value and the whole text value are prefixes of a text value.

pre-processing

Pre-processing includes or excludes portions of a compilation unit as determined by preprocessing directives.

production

A production consists of a pattern and an optional constructor.

program

A program is a collection of compilation units which conform to the lexical, grammatical, and semantic rules of the language.

projector

A projector yields a new collection with one member from all the elements in a source collection.

query

A query is an expression which yields a new collection from one or more input collections.

recognize

A language recognizes a text value if it matches the Main rule.

reduce-reduce

A reduce-reduce conflict occurs if two rules match the same section of text. It may be resolved using precedence.

reference

A reference holds the identity value of another entity.

regular

Regular is a term from computer science for a class of languages. It is a subclass of the context free languages in which the rules are tail recursive and can be recognized by a finite-state automation.

representation

A representation is a storage format for a value. Typically a representation will restrict precision or stipulate an encoding.

rule

A rule is a collection of productions with an optional name. There are three forms of rules, syntax, token, and interleave.

scope

A scope is a container for symbol declarations. In M scopes are lexical which means they can be determined from the block structure of the language (unless otherwise specified).

selector

A selector yields a new collection containing all the elements of a source collection with a member equal to a value given as an argument.

set

A collection of distinct elements.

shift-reduce

A shift-reduce conflict occurs when the language processor can take different actions on two productions or within a single production. It may be resolved using precedence.

start rule

The start rule is the first rule a language processor attempts to match when recognizing a text value. The start rule for M is named Main.

static

A static quality is any quality which can be determined by reviewing the source text alone.

storage

A location that holds a value (see field and extent).

structural type

A type whose membership is determined by satisfying a structural pattern and possibly other constraints.

subtype

A subtype, S, is a type that permits only values of some other type, T.

supertype

A super type, T, is a type that permits all of the values of some other type, S.

symbol

A symbol is an identifier in the source text. Symbols are defined within scopes. Modules control the visibility of symbols.

syntax

Syntax is used in two ways. In the general sense, syntax is the rules that define a language. In M, syntax is used to designate a rule which defines a context-free language.

token

Token is used to designate a rule which defines a regular language. It is also used to name the sections of a text value recognized by such a rule.

type

A type is a predicate over values that yields a collection.

unique

An element is unique within a collection if no other element is equal it.

value

Syntactically, a value is and expression constructed solely from literals and initializers. It contains no variable reverences, computed values or operators. Conceptually a value is any abstract notion that can be represented in this way.

variable

A variable is a symbolic name for value.

Show:
© 2014 Microsoft