-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (33 loc) · 1.92 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html>
<head>
<title>Marathi Arithmetic Parser</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Marathi Arithmetic Parser</h1>
<p>This is a parser built in JavaScript that can parse arithmetic operations written in Marathi language, which is an Indian language. It follows the BODMAS (Bracket, Order, Division and Multiplication, Addition, Subtraction) rule to evaluate expressions. The parser can handle input strings that include Marathi words for division, multiplication, addition, and subtraction operations, as well as decimals, brackets, and whitespace. Notably, this parser does not use any built-in parsing mechanisms such as the `eval()` method.</p>
<div class="link">
<a href="https://github.com/rahuldangeofficial/marathi-arithmetic-parser"><b>Click here for usage instructions</b></a>
</div>
<hr>
<label for="input-expression" class="input-label">Enter the expression in Marathi:</label>
<input type="text" id="input-expression" class="input-field" placeholder="e.g. 10 अधिक 2 गुणिले 3 वजा 4 भागिले 2">
<button id="parse-btn" class="btn">Parse</button>
<label for="output-result" class="output-label">Result:</label>
<input type="text" id="output-result" class="output-field" readonly>
<p>Examples:</p>
<ul>
<li>10 अधिक 2 गुणिले 3 वजा 4 भागिले 2</li>
<li>10.5 अधिक 2 गुणिले (3 वजा 4) भागिले 2.5</li>
<li>10.5अधिक2गुणिले(3वजा4)भागिले2.5</li>
<li>16 वजा 8 अधिक 14 भागिले 2</li>
<li>16 वजा (8 अधिक 14) भागिले 2</li>
<li>16.5अधिक2.5गुणिले(3वजा4)भागिले2.5</li>
<li>1अधिक2अधिक3</li>
</ul>
</div>
<script src="script.js"></script>
</body>
</html>