Skip to content

Opeico: A versatile programming language merging C#, Python, and R. Clean syntax, math integration, and simple code organization make it ideal for data analysis, math computations, and general programming. Exception handling and namespace import simplify development. Join us to streamline your coding experience!

License

Notifications You must be signed in to change notification settings

Daszbin/OpeicoProgrammingLanguage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opeico Programming Language

Opeico: "Open Programming Environment for Innovative Computing Operations"

A versatile programming language merging C#, Python, and R. Clean syntax, math integration, and simple code organization make it ideal for data analysis, math computations, and general programming. Exception handling and namespace import simplify development. Join us to streamline your coding experience!

Opeico Logo

Welcome to the official repository of Opeico, a versatile programming language designed to simplify coding tasks with a clean and intuitive syntax.

Key Features

  • Clean and Readable Syntax: Opeico's syntax is easy to understand, making it accessible for developers of all levels.

  • Math Integration: Incorporates mathematical capabilities inspired by R and Python for data analysis and scientific computing.

  • Code Organization: Define classes, methods, and namespaces with ease using a simplified structure.

  • Exception Handling: Easily manage errors with built-in try-catch blocks using "$t_" and "$c_".

  • Namespace Import: Seamlessly integrate external libraries and namespaces with "IMP: N_:".

    Similarities Between Opeico and C#

  • Syntax: Opeico and C# share some similarities in syntax, making it easier for developers familiar with C# to transition to Opeico.

  • Object-Oriented: Both languages are object-oriented and support classes, methods, and encapsulation.

  • Namespace Import: They both use a similar concept for importing namespaces to access external libraries and classes.

  • Exception Handling: Both languages support exception handling with try-catch blocks.

  • Variable Declarations: Variable declarations in Opeico using "RUN" are conceptually similar to variable declarations in C#.

  • Method Definitions: The structure of defining methods in both languages is similar.

  • Mathematical Operations: Opeico's math capabilities, inspired by R and Python, share similarities with C#'s arithmetic operators.

  • String Manipulation: Both languages support string manipulation with common operations.

  • Clean Syntax: Both aim for clean and readable code, promoting good coding practices.

  • Main Method: They both have a main method as an entry point to the program.

  • Community and Documentation: Both have active communities and extensive documentation.

  • Exception Handling: Both languages offer similar mechanisms for handling exceptions with try-catch blocks.

  • Importing Libraries: Importing external libraries and namespaces is done using similar keywords in both languages.

Getting Started

To start using Opeico, follow these steps:

  1. Clone this repository.

  2. Explore the syntaxes or examples folder for comprehensive documentation and tutorials.

  3. Join our community by contributing to the development of Opeico. Check out our Contributing Guidelines for details.

Import External Libraries

  • Usage: IMP: N_: System, IMP: N_: System.IO, etc.
  • Description: Import external namespaces and libraries into your Opeico code, extending its functionality with predefined classes and functions.

Define Classes and Methods

  • Usage: DOMAIN MainClass, DOMAIN MyMethod(), etc.
  • Description: Define classes and methods as fundamental building blocks for code structure, encapsulating data and behavior.

String Manipulation

  • Usage: ?{"Hello, World!"}@, `?{"Result: " + result}@".
  • Description: Easily work with text and data by using double-quoted strings and concatenating variables and expressions.

Exception Handling

  • Usage: $t_ { ... } $c_ { ... }.
  • Description: Implement robust error management with "Try" and "Catch" blocks, ensuring your code handles exceptions gracefully.

Math Integration

  • Usage: result Kind 10 / 2, sum Kind a Kind b, etc.
  • Description: Perform mathematical operations with ease, inspired by languages like R and Python, using standard arithmetic operators.

the "RUN" Keyword

  • Usage: RUN myVariable Kind 42
  • Description: In Opeico, the "RUN" keyword is used for variable declaration and assignment. You can declare and initialize variables using "RUN" followed by the variable name, "Kind," and the initial value.

Comparison between Opeico and C#

Opeico Keywords C# Equivalents
PubC public class
PrivC private class
DOMAIN public void
DOMAIN2, DOMAIN3, ... Additional methods with numbers
RUN Variable declaration and initialization
Kind Data type declaration
IMP: N_: NamespaceName using NamespaceName
?{"Text"}@ Console.WriteLine("Text");
$t_ { ... } $c_ { ... } $f_ { ... } try { ... } catch { ... } finally { ... }
!abs~ abstract
^as as
$Base base
?bl> bool
?split break
b+ byte

Programming Language Comparison

Programming languages play a crucial role in software development, each with its own strengths and areas of application. Here's a comparison between Opeico, C#, R, and Python to help you understand their purposes and use cases:

Opeico

  • Purpose: Opeico is a domain-specific language (DSL) designed for simplicity and readability. It's often used for teaching programming concepts and rapid algorithm prototyping.
  • Syntax: Opeico's syntax is similar to languages like C# and VB.NET, making it familiar to programmers.
  • Typing: Opeico employs a static type system.
  • Libraries: Opeico may have a limited ecosystem and libraries due to its domain-specific nature.
  • Community: Opeico's community and adoption are likely to be limited.

C#

  • Purpose: C# is a general-purpose language used for developing Windows applications, web applications, and games through the .NET framework.
  • Syntax: C# has a C-like syntax and is known for its strong typing and support for object-oriented programming (OOP).
  • Typing: C# employs a static type system.
  • Libraries: C# benefits from a rich set of libraries and the extensive .NET ecosystem.
  • Community: C# has a large and active developer community.

R

  • Purpose: R is a language and environment tailored for statistical computing and data analysis.
  • Syntax: R has a unique syntax optimized for data analysis, with a focus on data manipulation, visualization, and statistical modeling.
  • Typing: R employs a dynamic and weak type system.
  • Libraries: R boasts a vast ecosystem of packages and libraries for data analysis, statistics, and machine learning.
  • Community: R has a large and active community, particularly in the data science and research domains.

Python

  • Purpose: Python is a versatile, general-purpose language celebrated for its simplicity and readability. It is used in web development, data analysis, machine learning, automation, and more.
  • Syntax: Python's syntax is clean and readable, making it an excellent choice for beginners and experienced developers.
  • Typing: Python uses dynamic typing with strong type inference.
  • Libraries: Python boasts an extensive ecosystem of libraries, including Django and Flask for web development, and libraries like NumPy, Pandas, and TensorFlow for data science and machine learning.
  • Community: Python enjoys one of the largest and most active programming communities, with broad adoption across various industries.

In summary, these programming languages serve different purposes and are chosen based on specific project requirements. Opeico focuses on simplicity and readability, C# is a versatile general-purpose language, R excels in data analysis, and Python's versatility makes it suitable for a wide range of applications. Your choice depends on the context and goals of your project.

Examples


# Import necessary namespaces
IMP: N_: System
IMP: N_: System.IO
IMP: N_: System.Collections.Generic
PubC MainClass
    # Public method
    DOMAIN Main(
        ?{"Opeico Code Example"}@

        # Using Kind for equality comparison
        a Kind 10
        b Kind 20
        isEqual Kind (a Kind b)
        ?{isEqual}@
    )

About

Opeico: A versatile programming language merging C#, Python, and R. Clean syntax, math integration, and simple code organization make it ideal for data analysis, math computations, and general programming. Exception handling and namespace import simplify development. Join us to streamline your coding experience!

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages