PrevTopNext

Adding Tolerance to a DSL Definition

Problem: We aren't accustomed to "finicky" use of our language.

Knack #5: Permit upper case and lower case.
Knack #6: Tolerate omission of articles.

DSL definition:

[then][Ss]end message to( the)? operator {text}=
      $operator.message( {text} + ": " + $order );
[then][Dd]iscard( the)? {thing}=retract( ${thing} );

PrevTopNext