Skip to content

KhanRameen/KhatoonScript-CodeCompiler

Repository files navigation

Compiler Construction

To Run the Code:

javac ScriptCompiler.java

java ScriptCompiler SampleCode.txt

Test Cases:

The SampleCode.txt Test for:

  • Multi-Interface with inheritance
  • Multi-Classes with extends and Milti implements
  • Constructors with this/super Call
  • Access Modifiers
  • Feilds
  • Methods returning DataTypes Objects along with Arrays
  • Method with Void return type and no return Keywords support
  • Switch Cases
  • Do while
  • If Else-if and Else
  • For Loop

Keywords

Access Modifiers

  • Private > chokidarAunty
  • Protected > fomoBeti
  • Public > blogBaji

Class, Object, and Interfaces

  • Class > channel
  • Interface > kittyParty
  • Extends > ammaOf
  • Implements > kitty

Object and Class Keywords

  • This > yeh
  • Super > maharani
  • New > nayi

Control Flow

  • If > agar
  • Else > magar
  • ElseIf > agarMagar
  • Switch > dekhoBaji
  • Case > yaTo
  • Default > warna
  • For > apHoAo
  • Do - While > Ao - Ghumo
  • Break > rukBehn
  • Continue > chaloYar
  • Return > yeLo

Exception Handling

  • Try > pakdam
  • Catch > pakdai
  • Finally > yeToHoga
  • Throw > panchait
  • Throws > zadaPanchait

Data Types and Type Declarations

  • Int > digitDidi
  • Float > pointyDidi
  • Boolean > hanKNa
  • Void > khali
  • Char > alphaDidi
  • String > betaDidi
  • true > han
  • false > na

Modifiers

  • Static > chillKro

About

A Code Compiler written in Java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages