Skip to content

Commit 167e8a6

Browse files
committed
feat: enhance Task and lowering functionality with FuncType support
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent 4e8be12 commit 167e8a6

6 files changed

Lines changed: 592 additions & 33 deletions

File tree

grammar/Wit.g4

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -341,41 +341,41 @@ VALID_SEMVER
341341
| VERSION_CORE DASH PRERELEASE PLUS BUILD
342342
;
343343

344-
VERSION_CORE: MAJOR DOT MINOR DOT PATCH
344+
fragment VERSION_CORE: MAJOR DOT MINOR DOT PATCH
345345
;
346346

347-
MAJOR: NUM_ID
347+
fragment MAJOR: NUM_ID
348348
;
349349

350-
MINOR: NUM_ID
350+
fragment MINOR: NUM_ID
351351
;
352352

353-
PATCH: NUM_ID
353+
fragment PATCH: NUM_ID
354354
;
355355

356-
PRERELEASE: DOTSEPERATED_PRERELEASE_ID
356+
fragment PRERELEASE: DOTSEPERATED_PRERELEASE_ID
357357
;
358358

359-
DOTSEPERATED_PRERELEASE_ID
359+
fragment DOTSEPERATED_PRERELEASE_ID
360360
: PRERELEASE_ID
361361
| PRERELEASE_ID DOT DOTSEPERATED_PRERELEASE_ID
362362
;
363363

364-
BUILD: DOTSEPERATED_BUILD_ID
364+
fragment BUILD: DOTSEPERATED_BUILD_ID
365365
;
366366

367-
DOTSEPERATED_BUILD_ID
367+
fragment DOTSEPERATED_BUILD_ID
368368
: BUILD_ID
369369
| BUILD_ID DOT DOTSEPERATED_BUILD_ID
370370
;
371371

372-
PRERELEASE_ID: ALPHANUM_ID | DIGITS
372+
fragment PRERELEASE_ID: ALPHANUM_ID | DIGITS
373373
;
374374

375-
BUILD_ID: ALPHANUM_ID | DIGITS
375+
fragment BUILD_ID: ALPHANUM_ID | DIGITS
376376
;
377377

378-
ALPHANUM_ID
378+
fragment ALPHANUM_ID
379379
: NON_DIGIT
380380
| NON_DIGIT ID_CHARS
381381
| ID_CHARS NON_DIGIT
@@ -385,16 +385,16 @@ ALPHANUM_ID
385385
NUM_ID: '0' | POSITIVE_DIGIT | POSITIVE_DIGIT DIGITS
386386
;
387387

388-
ID_CHARS: ID_CHAR | ID_CHAR ID_CHARS
388+
fragment ID_CHARS: ID_CHAR | ID_CHAR ID_CHARS
389389
;
390390

391-
ID_CHAR: DIGIT | NON_DIGIT
391+
fragment ID_CHAR: DIGIT | NON_DIGIT
392392
;
393393

394-
NON_DIGIT: LETTER | DASH
394+
fragment NON_DIGIT: LETTER | DASH
395395
;
396396

397-
DIGITS: DIGIT | DIGIT DIGITS
397+
fragment DIGITS: DIGIT | DIGIT DIGITS
398398
;
399399

400400
fragment DIGIT: [0-9]

0 commit comments

Comments
 (0)