2 years ago

#51775

test-img

Kretz

Specific purpose language in cpp, having trouble defining keyword

I want to make a specific purpose language in cpp and i am looking to make this syntax:

let name2 = object[ values val1, val2, val3... ];

Where both let, object and values are keywords.

My first approach was to use operator overload on [], to have object take all arguments but i couldnt manage to get it in the above form.

c++

operator-overloading

keyword

0 Answers

Your Answer

Accepted video resources