{"url":"https://ashigeru.hatenadiary.org/entry/20070911/1189502352","blog_url":"https://ashigeru.hatenadiary.org/","image_url":null,"author_url":"https://blog.hatena.ne.jp/ashigeru/","published":"2007-09-11 18:19:12","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","categories":["ANTLR"],"version":"1.0","blog_title":"\u3057\u3052\u308b\u30e1\u30e2","width":"100%","author_name":"ashigeru","title":" ANTLR(7) - Lexer\u306e\u30a8\u30e9\u30fc\u51e6\u7406","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fashigeru.hatenadiary.org%2Fentry%2F20070911%2F1189502352\" title=\" ANTLR(7) - Lexer\u306e\u30a8\u30e9\u30fc\u51e6\u7406 - \u3057\u3052\u308b\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","description":"@rulecatch\u3067catch\u7bc0\u3092\u66f8\u304f\u3068\u3001\u5168\u4f53\u306b\u5171\u901a\u3059\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u66f8\u3051\u308b\u3002 @lexer::rulecatch \u306f\u306a\u3044\u307f\u305f\u3044 \u78ba\u8a8d\u3057\u305f\u30a8\u30e9\u30fc Lexer\u3067Tokenize\u3067\u304d\u306a\u3044\u5148\u982d\u6587\u5b57\u3092\u898b\u3064\u3051\u308b\u3068\u3001NoViableAltException 2\u6587\u5b57\u76ee\u4ee5\u964d\u304cmatch\u3067\u304d\u306a\u3044\u3068 MismatchedTokenException 'a'..'z'\u306a\u3069\u306e\u7bc4\u56f2\u304cmatch\u3067\u304d\u306a\u3044\u3068 MismatchedRangeException (...)+ \u304c0\u56de\u306e\u7e70\u308a\u8fd4\u3057\u3060\u3068 EarlyExitException ('hoge'|'foo') \u304c\u30d2\u30c3\u30c8\u3057\u306a\u3044\u3068 MismatchedSetException \u2026","type":"rich"}