Eve leverages familiar keywords and syntax inspired by established languages like Java, C++, Ada, Pascal, and Ruby. It employs an explicit, consistent, and verbose style for enhanced code readability and learning by example. Additionally, Eve supports syntax highlighting and colorization for improved code comprehension.
Eve is tailored towards domain-specific jobs, prioritizing developer productivity. It focuses on effectiveness over extreme efficiency or high-performance computing.
Eve utilizes a static type system to ensure type safety. It mitigates null pointer exceptions by employing boxed values and initializing basic types with zero values.
Eve encourages code reusability through scripts and modules, promoting separation of concerns in larger projects. It offers three module types:
Eve will be able to connect and manipulates data from various databases. It reads and writes diverse data formats, including text, images, and video streams. We will create specific drivers for each database we interact with and optimize data access for reliability and performance.
This Eve program calculates the 5th number in the Fibonacci sequence. Here's a breakdown:
# Fibonacci series demonstrate
driver fibonacci:
** declare Fibonacci routine
function fib(n:Integer) => (y:Integer):
if (n == 1) or (n == 0) then
let y := 1; -- first value
else
let y := fib(n-1) + fib(n-2);
done;
return;
process
** local variable for result
new r: Integer;
** call fib rule using argument 5
let r := fib(5);
** print the result to console
print r;
return;
Ready to dive deeper into Eve? This brief demo has only scratched the surface of its capabilities. Explore the detailed explanations we've prepared to unlock the full potential of Eve for your data manipulation needs. As you delve into Eve's design, you'll gain valuable insights into programming language principles. Who knows, maybe one day you'll be inspired to create your own language or even contribute to the ongoing evolution of Eve!
Read next: Eve Syntax