File: MODES

package info (click to toggle)
editex 0.0.5-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,876 kB
  • ctags: 571
  • sloc: sh: 7,893; cpp: 4,438; ansic: 668; xml: 311; makefile: 228; ml: 86
file content (25 lines) | stat: -rw-r--r-- 486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

there are two basic syntactic modes:

TeX mode:

* any letter is an identifier by itself

Program mode:

* sequences of letters (and possibly other characters)
  are collapsed into a single token. Id tokens are separated
  by any other character not included in one of the collapsing
  categories.

The mode is a property of the parser.

there are two basic semantic modes:

math mode:

* implicit operator is multiplication

program mode:

* implicit operator is function application