Skip to Main Content
The “Oslo” Modeling Language
book

The “Oslo” Modeling Language

by David Langworthy, Brad Lovering, Don Box
October 2008
Beginner to intermediate content levelBeginner to intermediate
208 pages
3h 1m
English
Addison-Wesley Professional
Content preview from The “Oslo” Modeling Language

Chapter 2. Lexical Structure

2.1 Programs

An M program consists of one or more source files, known formally as compilation units. A compilation unit file is an ordered sequence of Unicode characters. Compilation units typically have a one-to-one correspondence with files in a file system, but this correspondence is not required. For maximal portability, it is recommended that files in a file system be encoded with the UTF-8 encoding.

Conceptually speaking, a program is compiled using four steps:

1. Lexical analysis, which translates a stream of Unicode input characters into a stream of tokens. Lexical analysis evaluates and executes pre-processing directives.

2. Syntactic analysis, which translates the stream of tokens into an abstract syntax ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Technical Java™: Developing Scientific and Engineering Applications

Technical Java™: Developing Scientific and Engineering Applications

Grant Palmer
Programming in the .NET Environment

Programming in the .NET Environment

Damien Watkins, Mark Hammond, Brad Abrams

Publisher Resources

ISBN: 9780321606518Purchase book