skeet70 / pascal-compiler

A project Pascal compiler written in Haskell.
5 stars 1 forks source link

Create a higher module directory for all of the Scanner functions #34

Closed iduhetonas closed 11 years ago

iduhetonas commented 11 years ago

The way that Haskell deals with modules that exist in sub-directories are with a '.' character separating the directories, as you've seen before (i.e. import Data.List is actually Data/List in the interpreter).

So, I'm thinking that once we start making the Parser and whatnot, we should make some sub-module classes for each section, so as to not get confused with a massive pile of .hs files in our root directory.

We'll have to modify our driver to allow "import Scanner.DigitFSA" for example, or "import Scanner" for everything (which may be better), but other than moving the files, it shouldn't be that big of a change.

skeet70 commented 11 years ago

Done in df5baa581011a057dcd94d6d765d0528ac3810dc