Lunar: Table of Contents

3 min read Original article ↗

Lunar Programming Language

by David A. Moon
January 2017 - January 2018



Last updated 9/17/2023.
1. Introduction

2. Organizing Mechanisms

3. Data

3.1 Slots

4. Behavior
5. Syntax
6. Expressions

6.1 Bodies

7. Statements

7.3.2 Cleanup

8. Definitions

8.1 Scope

8.1.1 Hoisting

9. For Statement

10. Bundles

11. Generic Classes

11.1 Syntax

12. Generic Methods

12.1 Syntax

13. Protocols

14. Basic Data Types

14.2 Nothing

14.3 Boolean

14.4 Name

14.6 Number

14.6.1 Integer

14.6.2 Float

14.7 Type

14.7.1 Class

14.7.2 Range

14.7.3 Set

14.7.4 Union

14.9 Method

15. Collection Types

15.5 Lists

15.6 Stacks

15.7 Ranges

15.8 Strings

15.9 Sets

15.10 Maps

16. Displays and Comprehensions
17. Strings

18. Streams

19. Destructuring
20. Modules
21. Parsing
22. Patterns
23. Templates
24. Macros

25. Program Representation

26. Parsing the Def Statement
27. Exception Handling
28. Thrilling Examples

29. Compiler Optimization

30. Method Selection Optimization

31. All Programming Languages are Wrong

32. Bootstrap Lunar