Skip to content

Latest commit

 

History

History
128 lines (91 loc) · 1.83 KB

LANGUAGE.md

File metadata and controls

128 lines (91 loc) · 1.83 KB

Design Considerations

MVP

  1. Variable (Limit Data Type to f64)
  2. Input (Numeric) /Output
  3. Conditionals
  4. Looping
    while (boolean conditionals) {
    
    }
  5. Boolean Expressions parsing
  6. Arithmetic Operations (+, -, /, *, %)
  7. Comments
  8. Floor Division Support
  9. Variables have global Scopes

Later

  • for loops
  • functions
  • break and continue
  • other data types like string char etc
  • nested loops and if else

Sample Code

  • Draft 1
START
A = 213128738927 # Identifer at start and not a taken
B = 2.30

INPUT C

IF A > B
A=20
ELSE IF A > C
B=20
ELSE
C=20
ENDIF

WHILE A < 3
A = A + 1
ENDWHILE

PRINT A

END
  • Draft 2
S
A = 213128738927 @ Identifer at start and not a taken
B = 2.30

I C

IF A > B 
A=20
EIF A > C
B=20
EF

W A == 3
A = A + 1
EW

PT A

E
  • Draft 3
PARAMPARA PRATISHTA ANUSHASHAN
A BOLE TOH 10
C BOLE TOH INPUT LE LE RE BABA

AGAR A > 3 TAB
; Statement
WARNA AGAR B > 3 TAB
; Statement
NHI TOH 
; Statement
BAS ITNA HI

JAB TAK HAI JAAN A > 3 TAB TAK
; Statement here!
JAHAN

PRINT BASANTI PRINT A


KHATAM TATA BYE BYE

COMPILED SUCCESSFULLY! => MOGAMBO KHUSH HUA!, Mai papa hu puri duniya ka papa, Kabhi Kabhi lagta hai apun hi bhagwan h

VERBOSE => ELVISH BHAIIIIIII

END OF SUCCESSFUL RUN => “Tussi ja rahe ho? Tussi na jao!”

ERROR => “Kya tum mantally challenged ho my buoy?”, “Tumse naa ho payega"", "Utha le re baba", "Baigan, aein???", "Choti Bacchi ho kya?", "Meri taraf mat dekhiye, main aapki koi sahayata nahi kar paunga", "satt crore" runtime error => knock knock, who's there runtime error, Systummm, Kya Takleep h aapko

:Bhai tumhara code phatt gya,

Compiler errors will show images also in terminal in CPP

Comments

@ Some Comments

Drafted by

  • rootCircle
  • Harshit-Chordiya
  • mohit07raghav19

Cheers 🍷