flaneur2020 / pua-lang

a dialect of The Monkey Programming Language
MIT License
3.28k stars 125 forks source link

【意见】注释语法 #10

Open ExerciseBook opened 3 years ago

ExerciseBook commented 3 years ago
  1. 单行注释:

    COMMENT_LINE: '劳动法:' .*? ('\r'|'\n') -> skip;
  2. 多行注释:

    COMMENT_BLOCK: '《劳动法' .*? '》'     -> skip;

来自群友的创意,我帮忙用 Antlr 语法转述一下发上来 qwq