Create C Sharp Compiler Constriction
Motivation:
We
are developing this language for adding better concepts like type checking,
data abstraction with more clear, easy to use and understand syntax, structure
and keywords which will allow the code to be more efficient, elegant and
straightforward for every developer.
Keywords:
|
Keyword |
Keyword |
Keyword |
|
omit as delete (C++) |
essential as main (C++) |
showup as cout (C++) |
|
Dual as double (C++) |
when as while (C++) |
only as char (C++) |
|
single as int (C++) |
option as case (C++) |
perfect as true (C++) |
|
last as else (C++) |
result as return (C++) |
blank as void (C++) |
|
makeit as do (C++) |
Partial as float (C++) |
Checkif as Else if (C++) |
|
jamm as break (C++) |
Str as string (C++) |
NULL |
|
nottrue as false (C++) |
sign as bool (C++) |
Read as cin (C++) |
Data
Types:
•
Dual
(du) as double
•
Only
as char
•
Signal
as bool
•
Partial
as float
•
Strand
(str) as string
•
Single
as int
Iterative
statements:
• When
loop //pre-incremental
• When
loop //post-incremental
•
makeit
Whereas loop
Conditional
Statements:
•
if
•
last
(else c++)
•
checkif
(else if c++)
Comments
(Multi line + Single line):
::
=::=
Line
terminator:
|
|
? |
|
Operators: |
|
|
|
Increment (++) |
|
|
decreament (--) |
|
|
divide (/) |
|
|
remainder (%) |
|
|
multiply (*) |
|
|
also (&&) |
|
|
either (||) |
|
|
!= |
|
|
== |
|
|
= |
|
|
< |
|
|
> |
|
|
>= |
|
|
<= |
Punctuators:
[]
[::] as {} in (c++)
,
.
:
()
** as ““ in (c++)
^^ as ‘‘
in (c++)
Identifiers:
•
They
must begin with a letter or underscore (_).
•
They
must consist of only letters, digits, or underscore. No other special character is allowed.
•
It
should not be a keyword.
•
It
must not contain white space.
•
It
should be up to 31 characters long as only first 31 characters are significant.
Syntax
Specification:
Start_End:
Declaration:
Single
essentia()
<:
Code?
:>
partial
a = 3.2:
only
ch = ^a^?
str
flirt = *Hello Word*?
Functions:
r_pit
name() [: :]
r_pit
name(partial a) [: :]
r_du
name(du a) [:
return
a:
:]
Array
1D/2D:
single
array[size]=[1,2,3]:
single
array[row, column]=[1,2,3,1,3,4]:
Comments
Post a Comment