Max Base

Results 266 comments of Max Base

``` test { } main { test() } ```

``` type struct my { i32 a i32 b } main { my a a.a = 10 a.b = 20 } ```

``` type enum my { MY_A MY_B MY_C } main { my a = MY_A _ a } ```

``` type Point { i64 x i64 y } Point Point+(Point left, Point right) { Point p p.x = left.x + right.x p.y = left.y + right.y ret p }...

a image from Amir (Go Language): ![photo_2021-06-15_19-30-28](https://user-images.githubusercontent.com/2658040/122076526-30e45100-ce10-11eb-82f6-121b7d277fcf.jpg)

a image from Amir (Dart language): ![photo_2021-06-15_19-31-02](https://user-images.githubusercontent.com/2658040/122076612-42c5f400-ce10-11eb-9c96-b8d0ebb66986.jpg)

This is our **clang-format** config: https://github.com/One-Language/One/blob/master/.clang-format We can take a look at other c/c++ projects to see what clang-config these use...

Good trick ``` // clang-format off ..... ..... ..... // clang-format on ```

[LexAndYacc.pdf](https://github.com/One-Language/One/files/6601207/LexAndYacc.pdf) [OperatorPrecedenceParsing.pdf](https://github.com/One-Language/One/files/6601208/OperatorPrecedenceParsing.pdf) ![unknown](https://user-images.githubusercontent.com/2658040/120862074-9416ed80-c59d-11eb-904c-853b40d75c1a.png)

Thank you for your message. Okay, honestly I not sure about some special operators. such as >>