[ros-general] writing file manager / how to use lex?
Robert Köpferl
rob at koepferl.de
Sat Mar 20 21:02:16 UTC 2004
Jan Tisje schrieb:
> hi,
>
> I started to write a file manager....
>
> my target is to make it easy to use but very powerful and flexible.
> apart from windows fs, it will support many filesystems (eg. nfs, http,
> ftp, webdav... )
I'd suggest to support an not existing FTP-FS which may work by putting
connection data in a special file.
> One point is to show if and how the "C:, D:" drive assignment may be
> overcome.
> So i will use URLs.
??? Maybe that would be one solution we should put into the win32 sub
system so that any app can use them...
> The most important part missing is an URL parser.
> **** does anyone know how to use lex to generate a parser? ****
>
> I write in delphi, so the interesting part of the lex file will be the
> left side, finding the URL components.
Find a RegEx engine for Delphi and parse this regular language via
regular expressions.
>
> there are BNFs available for URL, but
> BNF is no standard, so syntax is odd (to me)
> lex does not expect BNF but it's own format.
>
> URI, BNF in appendix A
> http://www.faqs.org/rfcs/rfc2396.html
> URL, BNF in chapter 5
> http://www.faqs.org/rfcs/rfc1738.html
>
>
> btw, the filemanager will use plugins to view the file contents.
> **** Who wants to write some plugin DLLs? ****
> they may be written in C, interface will be strictly WinAPI standard.
>
> There will be two types of DLLs
> - those that render to a windows device context (or bitmap, I do not
> know yet)
> - and those that convert a file to a HTML representation.
>
> (yes, the file manager already is capable to display html, without IE!)
>
> Jan
>
> _______________________________________________
> ros-general mailing list
> ros-general at reactos.com
> http://reactos.com/mailman/listinfo/ros-general
More information about the Ros-general
mailing list