parse-effect ( end -- effect )


Vocabulary
effects.parser

Inputs and outputs
enda string
effectan instance of effect


Word description
Parses a stack effect from the current input line.

Examples
This word is used by ( to parse stack effect declarations.

Notes
This word should only be called from parsing words.

Definition
USING: effects kernel ;

IN: effects.parser

: parse-effect ( end -- effect )
[ "--" parse-effect-tokens ] dip
parse-effect-tokens <variable-effect> ;