[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[scripting] 200 - Parsing errors

"Limitations: can't use super"
((ScriptParser new parse: '
    super yourself
' onError: [:error| ^self note: 'NOTE - ',error description ]) evaluate: 5) = 5 ifFalse: [ self error: 'Must be 5' ]


"series of numbers"
((ScriptParser new parse: ' 1 2 3 4'
        onError: [:error| ^self note: 'OK - ',error description ]
) evaluate: 5@7) error: 'Should not happen'