Share your Programming Language Jam submissions here!

← Back to all posts
Egua Language - A programming language in portuguese
h
lucaspompeun (13)

Egua Language - A general-purpose programming language in portuguese

To be part of the technology world you need to know how to speak english, but in Brazil this isn't a easy job to do, as a research shows that only 5% of our population has english fluency. In this way, we've created a general-purpose programming language entirely in portuguese to help people tha want to learn code. This programming language also supports object-oriented programming and works entirely on web, that's possible because we use JavaScript with browserify, and with this feature we can guarantee that all new developers won't have any dificults to start coding with our language, just like start to develop with Repl.it :) Oh, we also support the language interpreter with a CLI, you can simply use NPM to download, using the command line: $ npm i -g egua

The team of development:

Our team link: https://repl.it/@egua

To use our language is really simple, we build two diferrents ways, the first is to use with a integrated IDE, that we named IDEgua: https://repl.it/@egua/egua or https://egua.repl.co/

The second way is as a command line: https://repl.it/@egua/console or https://console.egua.repl.run/

To see our language in action you can access our IDEgua and click in Exemplos on letf-top-side and choose any example and finally click in Executar on right-top-side. Or you can use the code below:

classe ClassFather {
  FatherMethod() {
      escreva("This is a father method");
  }
}
classe ClassChild herda ClassFather {
  ChildMethod() {
      escreva("This is a child method");
  }
}
var ClassExample = ClassChild();

ClassExample.FatherMethod(); //Output: This is a father method
ClassExample.ChildMethod(); //Output: This is a child method

We use the example above in english, but if you would like see in portuguese:

classe ClassePai {
  MetodoPai() {
      escreva("Isto é o método pai");
  }
}
classe ClasseFilho herda ClassePai {
  MetodoFilho() {
      escreva("Isto é o método filho");
  }
}
var ExemploClasse = ClasseFilho();

ExemploClasse.MetodoPai(); //Output: Isto é o método pai
ExemploClasse.MetodoFilho(); //Output: Isto é o método filho

Our command line is different, we don't have examples inside, but you can use the same code above, just see it:

Console da Linguagem Egua v1.0.4

egua> classe Animal { correr() { escreva("Correndo Loucamente"); } }

egua> var bicho = Animal();

egua> bicho.correr();
Correndo Loucamente

In the Exemplos list on IDEgua you can see that our language supports:

  • Repeating loops
  • Functions
  • Arrays
  • Dictionaries
  • Math library - as you can use var math = importar("eguamat"); escreva(math.pi); to show pi
  • Data sctructures as dictionary
  • Dinamic typed variables

You can see our source code HERE

Commentshotnewtop
PDanielY (1128)

Wow, this is a very unique programming language.

lucaspompeun (13)

We also have a full documentation in portuguese, check it: https://egua.tech/docs

Kookiez (227)

I think this might win

julienmalard (8)

Parabéns! Io gosto disso. Nós também temos um lenguage semelhante, Lassi. Possivelmente podemos trabalhar juntos? :)

lucaspompeun (13)

@julienmalard Claro que podemos, há diversos projetos que desejamos fazer e nosso código todo é aberto. Olha aqui as redes sociais e grupos de telegram/whatsapp e chama a gente https://egua.tech/comunidade
:)

cdCreepArghhh (6)

Programming languages in other languages aren't that common. There are only English ones. Good job!