apoch / epoch-language

Home of the Epoch Programming Language Project
Other
72 stars 3 forks source link

Package/Module support #133

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
some form of module/namespacing support...

package io //Everything in here is under the "io" package and must be 
referenced to as "io."

read_line : //"io.read_line()"
{
    //...
}

Original issue reported on code.google.com by ryoohki@gmail.com on 15 Feb 2012 at 8:14

GoogleCodeExporter commented 9 years ago

Original comment by ryoohki@gmail.com on 15 Feb 2012 at 8:14

GoogleCodeExporter commented 9 years ago

Original comment by ryoohki@gmail.com on 15 Feb 2012 at 8:18

GoogleCodeExporter commented 9 years ago
As an additional note:

Compilation of seperate files needs to have the check for "entrypoint" made 
optional, or better yet... removed entirely.

Entrypoints should only ever be required if the document is expected to 
EXECUTE. In the case of compilation to byte code, or in the case of building a 
"project" this is not necessary, as the entrypoint will either not be needed 
(building a library, dll, etc), or will be in another file (imagine breaking 
era up into multiple source files).

Currently the system does a semantic check that throws if each source file does 
not have an entrypoint.

Original comment by ryoohki@gmail.com on 7 Aug 2013 at 9:01