Differences From Artifact [79038e8ac0f7ba6a]:
- File
polemy/layer.d
- 2010-11-23 07:42:13 - part of checkin [6ac127ddd0] on branch trunk - new evaluator (user: kinaba) [annotate]
To Artifact [62182a8e7452f9e8]:
- File
polemy/layer.d
- 2010-11-23 09:36:27 - part of checkin [b97bd4f713] on branch trunk - automatic AST to table encoder (user: kinaba) [annotate]
12 12
13 13 alias string Layer;
14 14
15 15 enum : Layer
16 16 {
17 17 SystemLayer = "(system)", /// Predefined layer for internal data
18 18 ValueLayer = "@value", /// Predefined layer for normal run
19 - MacroLayer = "@macro", /// Predefined layer for macro run
20 - RawMacroLayer = "(rawmacro)", /// Predefined layer for raw-macro run
19 + MacroLayer = "@macro", /// Predefined layer for macro run (@lay() changes layer)
20 + RawMacroLayer = "(rawmacro)", /// Predefined layer for macro run (@lay() becomes AST)
21 +}
22 +
23 +bool isMacroishLayer( Layer lay )
24 +{
25 + return lay==MacroLayer || lay==RawMacroLayer;
26 +}
27 +
28 +bool isNoLayerChangeLayer( Layer lay )
29 +{
30 + return lay==RawMacroLayer;
21 31 }