acspec-parser 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/main.cjs +53 -53
- package/dist/cjs/main.cjs.map +3 -3
- package/dist/esm/main.mjs +56 -56
- package/dist/esm/main.mjs.map +3 -3
- package/dist/language/generated/ast.d.ts +9 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ export declare const AcspecTerminals: {
|
|
|
11
11
|
SL_COMMENT: RegExp;
|
|
12
12
|
};
|
|
13
13
|
export type AcspecTerminalNames = keyof typeof AcspecTerminals;
|
|
14
|
-
export type AcspecKeywordNames = "(" | ")" | "," | ":" | "check" | "check!" | "check_action" | "check_action!" | "check_alarm" | "check_alarm!" | "count" | "delay" | "delay!" | "init" | "loop" | "schedule" | "unit" | "unwatch" | "unwatch!" | "use" | "watch" | "watch!" | "write" | "write!" | "{" | "|" | "}";
|
|
14
|
+
export type AcspecKeywordNames = "(" | ")" | "," | ":" | "check" | "check!" | "check_action" | "check_action!" | "check_alarm" | "check_alarm!" | "count" | "delay" | "delay!" | "init" | "lenient" | "loop" | "schedule" | "strict" | "unit" | "unwatch" | "unwatch!" | "use" | "watch" | "watch!" | "write" | "write!" | "{" | "|" | "}";
|
|
15
15
|
export type AcspecTokenNames = AcspecTerminalNames | AcspecKeywordNames;
|
|
16
16
|
export type BlockCommand = CountCommand | LoopCommand | ScheduleCommand;
|
|
17
17
|
export declare const BlockCommand = "BlockCommand";
|
|
@@ -84,7 +84,7 @@ export interface LoopCommand extends langium.AstNode {
|
|
|
84
84
|
export declare const LoopCommand = "LoopCommand";
|
|
85
85
|
export declare function isLoopCommand(item: unknown): item is LoopCommand;
|
|
86
86
|
export interface Model extends langium.AstNode {
|
|
87
|
-
readonly $type: 'Model' | 'TypeDeclare';
|
|
87
|
+
readonly $type: 'Model' | 'StrictMode' | 'TypeDeclare';
|
|
88
88
|
commands: Array<BlockCommand | LineCommand>;
|
|
89
89
|
}
|
|
90
90
|
export declare const Model = "Model";
|
|
@@ -136,6 +136,12 @@ export interface WriteCommand extends langium.AstNode {
|
|
|
136
136
|
}
|
|
137
137
|
export declare const WriteCommand = "WriteCommand";
|
|
138
138
|
export declare function isWriteCommand(item: unknown): item is WriteCommand;
|
|
139
|
+
export interface StrictMode extends Model {
|
|
140
|
+
readonly $type: 'StrictMode';
|
|
141
|
+
strict: 'lenient' | 'strict';
|
|
142
|
+
}
|
|
143
|
+
export declare const StrictMode = "StrictMode";
|
|
144
|
+
export declare function isStrictMode(item: unknown): item is StrictMode;
|
|
139
145
|
export interface TypeDeclare extends Model {
|
|
140
146
|
readonly $type: 'TypeDeclare';
|
|
141
147
|
value: 'init' | 'unit';
|
|
@@ -155,6 +161,7 @@ export type AcspecAstType = {
|
|
|
155
161
|
LoopCommand: LoopCommand;
|
|
156
162
|
Model: Model;
|
|
157
163
|
ScheduleCommand: ScheduleCommand;
|
|
164
|
+
StrictMode: StrictMode;
|
|
158
165
|
TimeParam: TimeParam;
|
|
159
166
|
TypeDeclare: TypeDeclare;
|
|
160
167
|
UnwatchCommand: UnwatchCommand;
|