aboutsummaryrefslogtreecommitdiff
path: root/src/lux.clj (unfollow)
Commit message (Collapse)AuthorFilesLines
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
2014-12-13+ Removed "module" special form.Eduardo Julian1-7/+7
+ Fixed a bug that was preventing multi-line comments from being truly multi-line.
2014-12-12Added let (local vars).Eduardo Julian1-1/+0
2014-12-12Analyser can now distinguish between local and global vars & point the ↵Eduardo Julian1-2/+2
compiler to the right place to look for data.
2014-12-11+ Added an analysis phase.Eduardo Julian1-1/+30
+ Added a type-system.
2014-12-09Now compiling tagged values.Eduardo Julian1-1/+4
2014-12-09Now can define constants in modules.Eduardo Julian1-4/+2
2014-12-08Can now define inside modules: simple classes with public fields.Eduardo Julian1-0/+3
2014-12-08Added modules.Eduardo Julian1-4/+20
2014-12-07Cleaned up a lot of useless code and removed the state monad from the ↵Eduardo Julian1-8/+6
compilation phase (the ASM library already works as a state monad).
2014-12-02Added some super-basic type-system.Eduardo Julian1-1/+2
2014-12-01Doing some basic compilation.Eduardo Julian1-0/+26