E.2 Camille 0.1: Numbers and Primitives

Comments

Camille has only a single-line comment, which consists of three consecutive dashes (i.e., ---) followed by any number of characters up to the next newline character.

Identifiers

Identifiers in Camille are described by the following regular expression: [_a-zA-Z][_a-zA-Z0-9*?!]*. However, an identifier cannot be a reserved word in the language (e.g., let).

Syntax

The following is a context-free grammar in EBNF for version 1.0 of the Camille programming language through Chapter 10:

A list of context-free grammar in E B N F for version 1.0 of Camille.
Description

Semantics

Currently,

Two expressions. Expressed value equals integer. Denoted value equals integer.

Thus,

An expression. Expressed value equals denoted value equals integer.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.237.89