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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acspec-parser",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "keywords": [
5
5
  "AcSpec",
6
6
  "acspec"