https://github.com/othonalberto/filecalculator
Primeiro código em Elixir - conhecendo a linguagem
https://github.com/othonalberto/filecalculator
Last synced: 11 months ago
JSON representation
Primeiro código em Elixir - conhecendo a linguagem
- Host: GitHub
- URL: https://github.com/othonalberto/filecalculator
- Owner: othonalberto
- Created: 2020-10-24T22:04:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-25T13:32:38.000Z (over 5 years ago)
- Last Synced: 2025-01-30T23:42:16.626Z (about 1 year ago)
- Language: Elixir
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FileCalculator
Este é meu primeiro contato com a linguagem Elixir. Projeto hiper básico, apenas para conhecer a linguagem. Vou melhorando-o no futuro - ou não.
* Criar um arquivo que tenha o seguinte formato: OPERAÇÃO NUMERO1 NUMERO2
* Exemplo: + 1 2
* Resultado = 3
Operações disponíveis: +, -, *, /, ++ (soma 1 em cada um dos números e então aplica adição)
## Para executar:
* mix compile
* iex -S mix
* FileCalculator.execute("seuarquivo")
## Para executar os testes:
* mix test