Monday, 16 September 2019

Programming language syntax draft

" Namaste " : Prints Namaste with newline (like puts)
' Aur Sunao ' : Prints Aur Sunao without newline (like print)
( ) : For condition :: ((5>6){"yes"})(rethink)
( ) ? true : false :: (if else)
{ } : Block (write statements in it)
/* */ : multiline comments
=> : (not assigned yet) maybe (return)
<= : (not assigned yet) maybe (assignment)
+ : Add
- : Sub
* : Mul
/ : Div
== (equal?)
!= (not equal)
<, <= : (lessThan, equalTo)
>, >= : (greaterThan, equalTo)
&& : (AND)
|| : (OR)
! : (NOT)
& : (bit AND)
| : (bit OR)
^ : (XOR)
>> : (right shift)<< : (left shift)
() => {} : (switch case) ((var =7) 7=> {"is 7"}
~: (infinity)
 <varName> : (string interpolation)
@ : (import modules)(installed)
# : (include local files)
[Title of Link]`linkUrl` : (add url)(what for?)
varName[9] : (array)

i8, i16, i32, i64 : (int and bytes)
f32, f64 : (floats)
varName Str (the type is string)
varName Char (type is char)
auto : (based on the value returned by function)
fn Name() : (function declaration)

Related Posts:

  • How to download original Twitter images ? So, I wrote answer on quora for "How to download original images from Pinterest. And, to my surprise, it got 36k+ views. But I deleted that account, so I moved that answer to my blog. Here are the steps to download ima… Read More
  • Where to learn Ruby lang? You can learn Ruby from Boris Pashkhaver's Ruby Course on Udemy. The course is suitable from absolute beginners to people who have learnt programming before. The instructor explains things clearly and gives good examples wh… Read More
  • Instruction Set Architecture The (main) memory can be modeled as an array of millions of adjacent cells, each capable of storing a binary digit (bit), having value of 1 or 0. These cells are organized in the form of groups of fixed number, say n, of c… Read More
  • What won’t Silicon Valley admit about technology and progress? That 87% of the Startups are unnecessary and don’t solve a real problem. Silicon Valley produced some great companies and a legacy for ages. Without Silicon Valley/Bay Area there probably would be no HP, Apple, Goog… Read More
  • Programming language syntax draft " Namaste " : Prints Namaste with newline (like puts) ' Aur Sunao ' : Prints Aur Sunao without newline (like print) ( ) : For condition :: ((5>6){"yes"})(rethink) ( ) ? true : false :: (if else) { } : Block (write stateme… Read More

0 Comments:

Post a Comment