A coding solution for native Spanish speakers


Project maintained by akercheval Hosted on GitHub Pages — Theme by mattgraham

Update:

Sí 2.0 is up and running! Translation to and from python is now available. Some things that are different about it:

  1. Now, you must specify which language you’d like to translate to and from. This means the usage for a hypothetial file now looks like this: si cpp testfile.si testfile.cpp, whereas before it looked like si testfile.si testfile.cpp It’s the same with python, by the way, you just need to replace cpp with py: si py testfile.si testfile.py
  2. Sí will attempt to run the python script automatically, for a more (although not nearly perfect) python shell-like experience. This only works with python3, not with anything younger.
  3. As always, translations are still in development. The current list for python can be found here

### A coding solution for native Spanish speakers

Sí is a pseudo-programming language that serves as a Spanish-based alternative to C++ and Python, 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++ or Python 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 using namespace std;

int main(void) { cout « “¡Hola, mundo!” « endl; return 0; } would be written in Sí like this: #incluir usando nombres std;

int main(vacío) { ca « “¡Hola, mundo!” « terml; volver 0; } ```

To Use:

  1. Clone the repository and compile with make all
  2. Add the Sí executable to your path if you want.
  3. Instructions to do so if you don’t know how!
  4. From the command line, type si <cpp or py> <sífile>.si <destination>.<cpp or py> (or ./si if the executable isn’t in your path).
  5. If no destination is specified, <sífile>.<cpp or py> will be created and w.
  6. The file will be translated to English C++ or Python and can then be compiled and run.
  7. make all will also make an executable called is, which is si, but backwards. In other words, it translates C++ into Sí.

Notes:

Planned updates:

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.