grammar SwingFont;

import BasePrimitives, CssUnit;

fontSwing
    : fontSwingLong
    | fontSwingShort
    ;

fontSwingLong
    : name=words (HP style=fontSwingStyle)? (HP size=numberInt)?
    ;

fontSwingShort
    : name=word (WS style=fontSwingStyle)? (WS size=numberInt)?
    ;


fontSwingStyle
    : SWING_FONT_STYLE_BOLD
    | SWING_FONT_STYLE_ITALIC
    | SWING_FONT_STYLE_BOLD_ITALIC
    | SWING_FONT_STYLE_PLAIN
    ;


SWING_FONT_STYLE_BOLD: 'BOLD';
SWING_FONT_STYLE_ITALIC: 'ITALIC';
SWING_FONT_STYLE_BOLD_ITALIC: 'BOLDITALIC';
SWING_FONT_STYLE_PLAIN: 'PLAIN';
