adavidoaiei / elena-lang

ELENA is a dynamic object-oriented programming language. It features message dispatching, mixins and a script engine

Home Page:https://elena-lang.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ELENA Programming Language

elena-lang.github.io | Docs | Changelog | Contributing

Build status Sponsor Sponsor

ELENA is a general-purpose language with late binding. It is multi-paradigm, combining features of functional and object-oriented programming. It supports both strong and weak types, run-time conversions, boxing and unboxing primitive types, direct usage of external libraries. Rich set of tools are provided to deal with message dispatching : multi-methods, message qualifying, generic message handlers. Multiple-inheritance can be simulated using mixins and type interfaces. Built-in script engine allows to incorporate custom defined scripts into your applications. Both stand-alone applications and Virtual machine clients are supported.

Features

  • Free and open source (MIT licensed)
  • Complete source code
  • Unicode support (utf-8)
  • GUI IDE & Debugger
  • Optional types
  • Multiple dispatching / multi-methods
  • Returning Multiple Values
  • Support of variadic methods
  • Support of yieldable methods
  • Closures
  • Mixins
  • Type interfaces / conversions
  • Class / code templates
  • Script Engine

Currently Supported Platforms

  • Windows
  • Linux

For time being only x86 (32-bit) architecture is supported.

Source Download and Compilation

To acquire the source code clone the git repository:

git clone git://github.com/ELENA-LANG/elena-lang.git

Windows:

The compiler code is implemented in C++ and does not require external dependencies. You just need Visual Studio 2019.

You have to add a path to BIN folder to the system environment PATH or copy elenavm.dll and elenart.dll to Windows\System32 folder.

To build the compiler under VS2019 you have to go to the root folder and type:

recompile19.bat

To build the ELENA libraries type the following command:

rebuild_lib.bat

To build ELENA samples type the following command:

rebuild_examples.bat 

To build ELENA Rosetta-code samples type the following command:

examples\rosetta\build.bat 

To run unit-tests type the following command:

lib_tests.bat     

Contribute!

ELENA Project looks for programmers interested in learning the language and providing feedback.

1. Bugs, questions, suggestions?

If you've noticed a bug or have a question go ahead and make one!

Join design discussions or take part in general talks.

2. Implement "up for grab" issues

Good first issue is good starting point for a first-time contributors.

3. Rosetta code

You may try to implement some of Rosetta code tasks which are not yet implemented

Source Code Organization

Windows:

The ELENA source code is organized as follows:

bin                 binaries and shared libraries
bin\scripts         scripts used by the script engine and VM console
bin\templates       ELENA project templates
asm                 source for core routines implemented in assembly
dat\sg              language grammar file            
dat\og              language optimization rules
doc                 some documentations
elenasrc2\elc       source for the compiler
elenasrc2\elenart   source for the run-time shared library
elenasrc2\elenasm   source for the script engine
elenasrc2\elenavm   source for the virtual machine
elenasrc2\gui       source for IDE
elenasrc2\tools     source for ELENA utilities
examples            ELENA examples
src50               source for ELENA libraries

License

The compiler and executables distributed in this package fall under MIT License, for more information read the file LICENSE.

Questions?

Feel free to ask any question : elenaprolang@gmail.com.

Resources

About

ELENA is a dynamic object-oriented programming language. It features message dispatching, mixins and a script engine

https://elena-lang.github.io/

License:MIT License


Languages

Language:C++ 73.2%Language:Lex 11.5%Language:Assembly 4.1%Language:C 3.5%Language:Roff 3.1%Language:Common Lisp 1.7%Language:CMake 1.7%Language:JavaScript 0.5%Language:Batchfile 0.4%Language:Shell 0.2%Language:Inno Setup 0.1%Language:HLSL 0.0%Language:Objective-C 0.0%