on 72bd5cb help sign in
elk/compiler
7 folders, 6 files
../ Generate/Get all of the Haskell files compiling with the new type checker. Does not actually work, undefined is used in some places as a stopgap measure. Language/Add `hoverable` and `hoverables` Metadata/Switch the internal data constructor name for tuples. Before tuple constructors could be shadowed by user defined ADT's such as "Tuple0", "Tuple2", etc. Now it uses "_Tuple0" to make it impossible to overlap with user defined ASTs. Parse/Clean out this file, getting rid of dead code and adding some types. SourceSyntax/Add back in checks for duplicate and out-of-order definitions. Transform/Add back in checks for duplicate and out-of-order definitions. Type/Create the Type.Inference module which handles type inference from start to finish. Give it a Module and it returns a dictionary mapping top-level values to types. Compiler.hsFinish parameterizing the AST and properly check errors in let expressions. Docs.hsGet all of the Haskell files compiling with the new type checker. Does not actually work, undefined is used in some places as a stopgap measure. Dummy.cabalAdd two dummy files to make it possible to build the compiler from within emacs. This makes it faster to type-check things and start testing functions. Initialize.hsMinor cosmetic changes Paths_Elm.hsAdd two dummy files to make it possible to build the compiler from within emacs. This makes it faster to type-check things and start testing functions. Unique.hsParameterized the AST for type annotations and variable types. Also rename Guid.hs to Unique.hs which reads a lot nicer.