pnb / si

A C++ solution for native Spanish speakers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A coding utility for native Spanish speakers

Sí is a pseudo-programming language that serves as a Spanish-based alternative to C++, so that Spanish speakers can write code using Spanish keywords that make more sense to them than English ones do. This is especially useful for Spanish-speaking students who are learning to code for the first time, allowing them to learn to write programs without having to first understand English.

In other words, code written using the Spanish keywords in Sí translates directly to C++ code that can be compiled and run without ever having to look at English.

For example, a Hello World program in C++ would look like this:

#include <iostream>
using namespace std;

int main(void)
{
        cout << "¡Hola, mundo!" << endl;
        return 0;
}

would be written in Sí like this:

#incluir <iostream>
usando nombres std;

int main(vacío)
{
        ca << "¡Hola, mundo!" << terml;
        volver 0;
}

#####To Use:

  1. Clone the repository, place the Sí executable in your bin if you want.
  2. Instructions to do so if you don't know how!
  3. From the command line, type si <sífile>.si <destination>.cpp (or ./si if the executable isn't in your bin).
  4. If no destination is specified, <sífile>.cpp will be created and written.
  5. The file will be translated to English C++ and can then be compiled and run.

#####Notes:

  • A full list of words and their translations can be found here
  • This could quite possibly already work with C code as well. To be honest I just haven't tried it yet.
    • If it does, you'd need to specify to write to a .c file as opposed to a .cpp one.
  • This program is, because of Windows's weird ANSI encoding of accented characters (and my limited experience with dealing with it), only questionably compatible with Windows at the moment. But let's be real, why were you coding on Windows anyway? God knows how this would work on the Windows command prompt. I'd rather not think about it. Updates to come.
  • If you choose to only write some words in Spanish as opposed to all of them, that's chill too. The program won't translate anything in English to Spanish.

#####Planned updates:

  • More translations, of course.
  • Compatibility with other languages
  • Reverse translation (i.e. C++ to Sí)
  • Compiler support - admittedly, this whole thing isn't worth very much if you can't understand compiler messages
  • Shell translations (i.e. having qt for quitar do the same thing as rm)
  • A web app for Sí demonstration without the download
  • Debugging, of which I'm sure plenty is needed

Any help at all with anything is more than welcome, so go ahead and fork and shoot a pull request - whatever you want! Alternately, if you're lazy and just want to tell me something to do, hit me up here.

About

A C++ solution for native Spanish speakers

License:MIT License


Languages

Language:C++ 100.0%