Parent Directory
|
Revision Log
|
Patch
| revision 523 by abate, Tue Jul 10 17:41:22 2007 UTC | revision 524 by abate, Tue Jul 10 17:41:25 2007 UTC | |
|---|---|---|
| # | Line 1 | Line 1 |
| let highlight (Latin1 -> Latin1) | ||
| | [ '{{' h ::(Char *?) '}}' ; rest ] -> | ||
| [ !h ; highlight rest ] | ||
| | [ '%%' h ::(Char *?) '%%' ; rest ] -> | ||
| [ !h ; highlight rest ] | ||
| | [ c; rest ] -> [ c; highlight rest ] | ||
| | [] -> [] | ||
| ;; | ||
| 1 | match argv with | match argv with |
| 2 | | [ f ] -> print (highlight (load_file f)) | | [ f ] -> let [ ('{{' h ::(_ *?) '}}'| h::_)* ] = load_file f in print h |
| 3 | | _ -> raise "Specify an input file !" | | _ -> raise "Specify an input file !" |
|
||||||||
| CVS Admin">CVS Admin | ViewVC Help |
| Powered by ViewVC 1.1.5 |