?? tokenizer.pro
字號(hào):
% Author: Ying Tao, Department of Biomedical Informatics, Columbia University
% Date: 12/7/2005
:-module(tokenizer,[tokenize/2]).
tokenize(Str,List):- scanStr(Str,0,'',[],List),!.
scanStr(Str,L,Wlist,List,List1):- string_length(Str,L),string_to_atom(Wlist,Last),append(List,[Last],List1),!.
scanStr(Str,L,Sw,Wlist,List):- sub_string(Str,L,1,_,X),
string_to_list(X,Xl),
(( Xl = " ")->
( string_to_atom(Sw,Nwa),
append(Wlist,[Nwa],NWlist),
L1 is L +1,
scanStr(Str,L1,'',NWlist,List)
)
;
( string_concat(Sw,X,Nw),
L1 is L +1,
scanStr(Str,L1,Nw,Wlist,List)
)).
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -