File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed
Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change 11# CompilerInJava
22Basic compiler written in java
33
4- How to run this :-
4+ ## How to run this :-
55
6- Using Eclipse -
6+ #### Using Eclipse -
77
88Import project into eclipse and edit code in CompilerInJava/Compiler/code.pc and compile Main.java to execute
99
10- This includes basic operations like +(addition), -(subtraction), * (multiplication), /(division)
10+ #### This includes:-
1111
12- Data types and variables
12+ ######Basic operations like +(addition), -(subtraction), * (multiplication), /(division)
1313
14- Example :-
14+ ######Data types and variables
1515
16- For integer,
16+ ####Examples :-
17+
18+ > For integer
1719
1820 a = 4
1921
20- For float,
22+ > For float
2123
2224 a=4.2
2325
24- For string,
26+ > For string
2527
2628 a="Hello World"
2729
28- Implicit Functions
30+ #### Implicit Functions
2931
30- 1. print() -- print function
32+ > print() -- print function
3133
3234 print("Hello World")
3335 Result :- Hello World
3436
35- 2. println() -- println function --> prints the data then move to the newline
37+ > println() -- println function --> prints the data then move to the newline
3638
3739 println(3+5.3)
3840 Result :- 8.3
3941
40- String Manipulation : -
42+ #### String Manipulation : -
4143
42- 1. String concatenation
44+ > String concatenation
4345
4446 str="Hello " + 4.5
4547 println(str)
@@ -50,7 +52,7 @@ String Manipulation : -
5052 println(str)
5153 Result :- Hello World 4
5254
53- 2. String Repeat
55+ > String Repeat
5456
5557 str="Hello"* 3
5658 println(str)
You can’t perform that action at this time.
0 commit comments