Slide 18
Slide 18 text
Parser (II)
scenario
^self comment
, self tagGroup trim
, self scenarioKeyword
, #blank asParser star
, self untilEndOfLine
, self untilKeyword trim
, self steps
18/30
scenario
^super scenario ==> [:tokens|
ScenarioASTNode new
comment: tokens first;
tagGroup: tokens second;
title: tokens fifth;
description:
tokens sixth trimBoth;
steps: tokens seventh
]
Ejemplo