Languages Features Creators CSV Resources Challenges Add Language
GitHub icon


MVEL - Programming language

< >

MVEL is a programming language created in 2003.

#854on PLDB 20Years Old 235Users
0Books 0Papers

MVFLEX Expression Language (MVEL) is a hybrid dynamic/statically typed, embeddable Expression Language and runtime for the Java Platform. Originally started as a utility language for an application framework, the project is now developed completely independently. MVEL is typically used for exposing basic logic to end-users and programmers through configuration such as XML files or annotations. Read more on Wikipedia...

Example from Wikipedia:
import java.util.*; // the main quicksort algorithm def quicksort(list) { if (list.size() <= 1) { list; } else { pivot = list[0]; concat(quicksort(($ in list if $ < pivot)), pivot, quicksort(($ in list if $ > pivot))); } } // define method to concatenate lists. def concat(list1, pivot, list2) { concatList = new ArrayList(list1); concatList.add(pivot); concatList.addAll(list2); concatList; } // create a list to sort list = [5,2,4,1,18,10,15,1,0]; // sort it! quicksort(list);

Language features

Feature Supported Token Example
// A comment
Line Comments //
// A comment
Semantic Indentation X
bqn.html · mvel.html · c2.html

View source

- Build the next great programming language · Search · Day 213 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub ·