?? sort_tokens.t.svn-base
字號(hào):
# sort_tokens.t# test LL1::Parser::sort_tokensuse strict;use warnings;use Test::More tests => 4;use LL1_parser;*sort_tokens = \&LL1::Parser::sort_tokens;my @tokens;@tokens = sort_tokens(qw< /\w+/ 'if' 'else' /\d+/ >);is join(' ', @tokens), "'if' 'else' /\\d+/ /\\w+/";@tokens = sort_tokens(qw< /\w+/ 'if' '(' ')' 'else' '0' '1' >);is join(' ', @tokens), "'if' 'else' '0' '1' /\\w+/ '(' ')'";@tokens = sort_tokens(qw< 'if' /\w+/ '(' '0' "1" ')' 'else' >);is join(' ', @tokens), q['if' '0' "1" 'else' /\w+/ '(' ')'];@tokens = sort_tokens(qw< 'if' '(' '0' "1" ')' 'else' /\w+/ >);is join(' ', @tokens), q['if' '(' '0' "1" ')' 'else' /\w+/];
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -