It contains a simple program to apply basic arithmetic operations in Morse code

Overview

Morse-Calculator By Mohamad Farag F. Makkawi

This project falls under DSL (Domain Specific Language) .

the Input is an equation in which simple arithmetic operations such as addition, subtraction, multiplication, division, written in Morse code .
the Output is the output of this equation, but with Morse code, of course the Syntax and Semantic errors of the inputs will be explored .

Arithmetic operations in morse code :

  • plus = .-.-.
  • multiply = -..-
  • minus = -....-
  • divide = -..-.

Numbers in morse code :

  • 0 = -----
  • 1 = .----
  • 2 = ..---
  • 3 = ...--
  • 4 = ....-
  • 5 = .....
  • 6 = -....
  • 7 = --...
  • 8 = ---..
  • 9 = ----.

For example, if you wanted to calculate 1 + 9 using this program, you would write: .---- .-.-. ----.

The result, which is of course 10, will look like this: .---------

And suppose you made a mistake by entering the equation by entering 9 incorrectly like this : .---- .-.-. ---- The result :

Error line = 1 column = 12 : token recognition error at: '----'
Error line = 1 column = 16 : mismatched input '<EOF>' expecting {'-----', '.----', '..---', '...--', '....-', '.....', '-....', '--...', '---..', '----.'}
You might also like...

This repository contains the source code for a Product Comparison solution

This repository contains the source code for a Product Comparison solution

Product Comparison Installation Guide This repository contains the source code for a Product Comparison solution. Please report any issues here. Insta

Dec 5, 2022

This repository contains all the code developed during lessions of Foundations of Informatics T2.

If you're using the content of this Repostory, please consider to Watch or Star it in order to help tracking how many people are drawing on it. Founda

Nov 24, 2022

This repository contains the code for the Runescape private server project, and this repo is soley maintained by @Avanae and @ThePolyphia and @Xeveral

Runescape: The private server project. A Runescape private server based on the 2009 era. This repository contains the code for the Runescape private s

Oct 1, 2022

This repository contains source code examples to support my course Spring Data JPA and Hibernate Beginner to Guru

Spring Data JPA - Spring Data JPA This repository contains source code examples to support my course Spring Data JPA and Hibernate Beginner to Guru Co

Aug 24, 2022

Proj that contains code for merging files' data into one

Proj that contains code for merging files' data into one

Merge System Program that's written on Java for merging data (int or string types) of files (preferably .txt) into one file. Merge System Note: progra

Nov 27, 2022

a simple program to turn stockX images into gifs!

a simple program to turn stockX images into gifs!

StockX Gif Converter make stockx images look cool Idea I got this idea from Fyko/stockx-gif-next Usage import me.brennan.stockxgiffer.StockXGiffer; p

Jul 19, 2022

A simple FizzBuzz playing program which will count up to a number of your choice.

FizzBuzz A simple program which plays FizzBuzz up to a number of your choice. For those who don't know how FizzBuzz works, you count up from 1, but: E

Sep 15, 2022

This program is a simple machine learning implementation in Java for detecting skin pixels.

This program is a simple machine learning implementation in Java for detecting skin pixels.

Skin Detector πŸ‘¨ πŸ‘© Detects human skin from images This program is a simple machine learning implementation in Java for detecting skin pixels. How to

Jan 21, 2022

A simple program used to enter people into a file stored in memory, and the same saved data is displayed in a table

A simple program used to enter people into a file stored in memory, and the same saved data is displayed in a table

A simple program used to enter people (students or professors) into a file stored in memory, and the same saved data is displayed in a table. Persons have the appropriate attributes where name, surname, etc. are entered and identified by ID.

Apr 28, 2022
Owner
Mohamad Makkawi
.Net Developer
Mohamad Makkawi
This project shows how to configure basic auth to secure our rest API and basic transaction on Data JPA

Basic Atuthentication Spring Boot Data JPA, MySQL This project shows how to configure basic auth to secure our rest API and basic transaction on Data

Hafizullah Samim 1 Feb 10, 2022
ALL THE BASIC PROGRAM OF DSA with JAVA HERE ....

JAVA-WORKSPACE ALL THE BASIC PROGRAM OF DSA with JAVA HERE .... What is a Data Structure? Data Structure is a way to organized data in such a way that

Ashish_Goyal 7 Sep 30, 2022
This repo holds all the basic code and documentation to the ev3 roboter of group 3 from WS21/22

e3base This repo holds all the basic code and documentation to the ev3 roboter of group 3 from WS21/22 Task Every group had to build a roboter using t

Jonas Deipenbrock 1 Feb 12, 2022
This is simple project to show how to create a basic API using Java 11 + Maven + Spring Boot + PostgrSQL + Flyway.

This is simple project to show how to create a basic API using Java 11 + Maven + Spring Boot + PostgrSQL + Flyway.

Sean Maxwell 11 Dec 10, 2022
UMS is a CRUD based management system which uses File Handling to manipulate data and perform the CRUD operations

UMS is a CRUD (Create, Read, Update, Delete) based management system which uses File Handling to manipulate data and perform the CRUD operations. It is a group project made using Java procedural programming having both User and Admin sides.

Daoud-Hussain 9 Dec 20, 2022
It creates a Trie with given input and perform character based operations

Trie-with-character-based-operations It creates a Trie with given input and perform character based operations Boolean Search(String arg): This functi

null 2 Jul 3, 2022
An intelliJ plugin providing a UI layer for git-flow, which in itself is a collection of Git extensions to provide high-level repository operations for Vincent Driessen's branching model.

Git Flow Integration Plus for Intellij An intelliJ plugin providing a UI layer for git-flow, which in itself is a collection of Git extensions to prov

RubinCarter 35 Nov 8, 2022
CO1212 - Stack Operations Activity

StackOperations Download this two java files and implement the methods which are mentioned inside the class. Just use the basic things that I have tau

Dilshan Karunarathne 4 Apr 26, 2022
Teaching repository for the undergraduate course in Operations Research at Technical University Munich.

Tutorial for Operations Research SS22 Konstantin Kuchenmeister Teaching repository for the undergraduate course in Operations Research at Technical Un

Konstantin Kuchenmeister 9 Aug 27, 2022
Split into data blocks,In this format, efficient reading can be realized,Avoid unnecessary data reading operations.

dataTear εˆ‡ζ’θ‡³οΌšδΈ­ζ–‡ζ–‡ζ‘£ knowledge base dataTear Split into data fragments for data management. In this format, efficient reading can be achieved to avoid un

LingYuZhao 24 Dec 15, 2022