aboutsummaryrefslogtreecommitdiff
path: root/src/lux.clj (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-04-17- Solved the bug wherein type-inferencing was causing computational ↵Eduardo Julian1-1/+0
complexity to explode and cause the compiler to become very slow (solved it by removing type-inference from tuples). - Also removed type-inference from functions/lambdas. - Added a small optimization to improve the efficiency of type-checking by not doing a thorough type-check when a global or local binding has a type variant with the same cases as Type, and it's exo-type is also like this (hopefully, it will never happen that someone will exploit this to make the compiler do something weird...)
2015-04-16- Type-vars can now be deleted and be scoped (through with-var).Eduardo Julian1-1/+5
- Fixed a few bugs with types and pattern-matching. - Fixed a bug wherein primitive-analysis did now unify the primitive type with the exotype. - Modified lambda-analysis so functions subject to universal quantification can manage better the universally-quantified variables.
2015-03-30- Beginning to add type-system + type-inferencer.Eduardo Julian1-0/+1
- Removed exec, get@' & set@' special forms, as they are not primitive enough as to be part of the language.
2015-03-22- Fixed the bug that caused the infinite look while compiling the file.Eduardo Julian1-4/+2
2015-03-21- Added module-name aliasing.Eduardo Julian1-1/+0
2015-03-20[2nd Super Refactoring That Breaks The System: Part 6]Eduardo Julian1-0/+2
- Corrected more bugs in the system.
2015-03-19[2nd Super Refactoring That Breaks The System: Part 5]Eduardo Julian1-4/+5
- Changed indents to symbols. - Corrected some of the bugs in the system. Many more still awaiting fixes.
2015-03-17[2nd Super Refactoring That Breaks The System: Part 2]Eduardo Julian1-0/+1
- Compiler-state is now using Lux record-format. - Went from Error+Ok to Left+Right.
2015-03-15[2nd Super Refactoring That Breaks The System: Part 1]Eduardo Julian1-4/+0
- Finishing implementing the type-system. - Migrating more of the data-structures used in the compiler to the ones used by Lux itself.
2015-03-12- Added program creation (generates the "main" method).Eduardo Julian1-2/+3
- Added invokespecial & invokeinterface. - Added putstatic & putfield. - Corrected primitive conversions & bitwise operators to take into account (un)boxing.
2015-03-12- Added a special form for testing if references are null.Eduardo Julian1-6/+0
- Added bitwise operators. - Added synchronization primitives (monitor enter & exit). - Added exception-handling. - Added conversions between primitive values.
2015-03-10- Added null values as jvm-null.Eduardo Julian1-3/+7
2015-03-10- Modified the compiler so parser syntax tokens are stored in the same ↵Eduardo Julian1-1/+0
format as lux data-structures, to ease communication between the compiler & macros.
2015-03-08- The implementation of monadic macros is finally finished.Eduardo Julian1-1/+0
2015-03-08- Changed once more the syntax of the prefix for host special forms. It's ↵Eduardo Julian1-1/+1
now "jvm-" instead of "jvm;" - Fixed the bug where the same local vars/registers were getting registered more than once and the class-verifier complained. - Fixed a bug where the "end label" for pattern-matching bodies was never inserted. - Simplified the analyser by removing "self" calls and having self be just a local for the "this" object (register 0). - Removed the lambda-folding optimization. - The compiler state now holds and environment for naming globally-scoped lambdas.
2015-03-02- Removed the (currently broken) static-call optimization.Eduardo Julian1-4/+1
- Added a list of optimizations to do in the future (after the language is functionally complete).
2015-03-01[TODO]Eduardo Julian1-0/+2
- For some reason, when I fail at compilation due to mistaken use of tags/variants, I don't get the right error reported. [Fixes] - Solved a problem where stack values weren't being properly cleaned-up when pattern-matching on variants and branch bodies.
2015-03-01- Fixed some bugs with pattern matching and macros.Eduardo Julian1-0/+2
- Simplified the code for handling definitions and macros. - Slightly changed the names of the fields of tuple classes. - Added a (currently empty) optimization phase.
2015-02-18Corrections to the super-refactoring: part 4Eduardo Julian1-8/+4
2015-02-17Corrections to the super-refactoring: part 3Eduardo Julian1-8/+0
## "compiler" subsystem now (almost) compiles.
2015-02-15Super refactoring that breaks the system: Part 4Eduardo Julian1-93/+1
2015-02-10Super refactoring that breaks the system: Part 1Eduardo Julian1-0/+86
2015-01-29[Working on]Eduardo Julian1-1/+0
- The monadic implementation of macros is almost done. - Missing error-handling. [Fixes] - The output folder is now generated on each compiler run to avoid exceptions thrown by the class-loader.
2015-01-28[Enhancement]Eduardo Julian1-1/+2
- The compiler is now working properly post-refactoring. - The code for generating lambdas was refactored, though it needs to be broken-down further.
2015-01-22WARNING: BrokenEduardo Julian1-3/+6
[Enhancements] - Restructured the lexer a bit. - Restructured the parser a lot. - Changed the syntax a bit. - Module-names are now separated from def-names by a colon (e.g. module/submodule:var) - i+ -> iadd, i- -> isub, i* -> imul, i/ -> idiv - Added a (incomplete) way to annotate defs. Currently, only serves to mark defs as macros. - Removed "import" and "use". "require" is meant to be the way to load modules. - Did some major refactoring, cleaning and upgrading in the analyser. Though there is still some work pending.
2015-01-20[Enhancements]Eduardo Julian1-0/+1
- Simplified lexer. - Parser now does cleanup of comments & white-space, plus balancing of parens/brackets/braces and checking for even number of elements in records. - Lexer & parser now share state.
2015-01-19[Cleanup]Eduardo Julian1-1/+2
- Removed a lot of useless comments & logging. - Removed the useless test1.lux file.
2015-01-19[Bugs]Eduardo Julian1-12/+3
- Removed the issue that was causing the compiler to never display the true source of errors. [Enhancements] - Separated the prelude (lux.lux) and utils (util.lux) from the code at test2.lux - The compiler now handles module-separation a bit better [Cleanup] - Removed the unnecessary another.lux [Temporary] - The base classes/interfaces are now assumed to be in the "lux" module, but they must be moved to "lux/host"
2015-01-19[Enhancements]Eduardo Julian1-1/+1
Source code is looked-up inside a "source" directory.
2015-01-19[Enhancement]Eduardo Julian1-0/+1
.class files are now stored inside an "output" directory.
2015-01-11- Added substraction, multiplication and division for ints.Eduardo Julian1-2/+0
2015-01-10* Changed the language so variants now store their elements directly, ↵Eduardo Julian1-3/+2
instead of relying on a tuple. * Changed the pattern-matching and variant generation code accordingly. * Also changed a bit the special form for defining classes.
2015-01-03The language officially has a name: Lux (stylized as "lux").Eduardo Julian1-13/+10
2015-01-03The language now supports macros.Eduardo Julian1-167/+14
2015-01-02Pattern matching compiler now generates optimized code.Eduardo Julian1-258/+153
2014-12-26Reimplemented basic pattern-matching.Eduardo Julian1-1/+272
2014-12-21The machinery is in place to allow loading modules at runtime.Eduardo Julian1-1/+1
2014-12-20* Java interop is almost finished.Eduardo Julian1-1/+0
% _. and _.. syntax has been replaced with ::
2014-12-19Now the language has full closures.Eduardo Julian1-1/+0
2014-12-19Almost finished implementing closures.Eduardo Julian1-1/+1
2014-12-18All the classes that used to be generated per function have now been folded ↵Eduardo Julian1-8/+3
into one.
2014-12-16Added some pseudo pattern-matching (only extracting simple data, without ↵Eduardo Julian1-2/+1
exploring inner structure or doing any testing).
2014-12-16+ Strings now have escape characters.Eduardo Julian1-2/+4
+ Characters have been added. % Unicode support is missing...
2014-12-15Added ints and floats.Eduardo Julian1-2/+1
2014-12-15Added "do" expressions.Eduardo Julian1-1/+0
2014-12-15Added lambdas! (not yet real closures, but coming soon...)Eduardo Julian1-11/+15
2014-12-15Added tuples.Eduardo Julian1-92/+1
2014-12-14Now defining functions as classes inheriting Function.Eduardo Julian1-1/+19
2014-12-14Added module imports.Eduardo Julian1-1/+1
2014-12-14Added Java class imports.Eduardo Julian1-4/+49