[{"data":1,"prerenderedAt":410},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-quickstart":198,"-getting-started-quickstart-surround":405},[4,30,81,118,147,171,184],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"/getting-started","1.getting-started",[10,15,20,25],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","/getting-started/introduction","1.getting-started/2.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","/getting-started/installation","1.getting-started/3.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Quick start","/getting-started/quickstart","1.getting-started/4.quickstart","i-lucide-code-xml",{"title":26,"path":27,"stem":28,"icon":29},"Troubleshooting","/getting-started/troubleshooting","1.getting-started/5.troubleshooting","i-lucide-wrench",{"title":31,"icon":6,"path":32,"stem":33,"children":34,"page":6},"Core Features","/core-features","2.core-features",[35,39,43,48,52,56,60,64,68,73,77],{"title":36,"path":37,"stem":38,"icon":24},"Main function","/core-features/main-function","2.core-features/1.main-function",{"title":40,"path":41,"stem":42,"icon":24},"Variables","/core-features/variables","2.core-features/2.variables",{"title":44,"path":45,"stem":46,"icon":47},"Comment","/core-features/comment","2.core-features/3.comment","i-lucide-hash",{"title":49,"path":50,"stem":51,"icon":24},"Conditionals","/core-features/conditionals","2.core-features/4.conditionals",{"title":53,"path":54,"stem":55,"icon":24},"Loops","/core-features/loops","2.core-features/5.loops",{"title":57,"path":58,"stem":59,"icon":24},"Functions","/core-features/functions","2.core-features/6.functions",{"title":61,"path":62,"stem":63,"icon":24},"Pointers","/core-features/pointers","2.core-features/7.pointers",{"title":65,"path":66,"stem":67,"icon":24},"Data types","/core-features/datatypes","2.core-features/8.datatypes",{"title":69,"path":70,"stem":71,"icon":72},"Operators","/core-features/operators","2.core-features/9.operators","i-lucide-percent",{"title":74,"path":75,"stem":76,"icon":24},"Literals","/core-features/a.literals","2.core-features/a.literals",{"title":78,"path":79,"stem":80,"icon":24},"Keywords","/core-features/b.keywords","2.core-features/b.keywords",{"title":82,"icon":6,"path":83,"stem":84,"children":85,"page":6},"Features","/features","3.features",[86,90,94,98,102,106,110,114],{"title":87,"path":88,"stem":89,"icon":24},"Const","/features/const","3.features/1.const",{"title":91,"path":92,"stem":93,"icon":24},"Define","/features/define","3.features/2.define",{"title":95,"path":96,"stem":97,"icon":24},"Enum","/features/enum","3.features/3.enum",{"title":99,"path":100,"stem":101,"icon":24},"Union","/features/union","3.features/4.union",{"title":103,"path":104,"stem":105,"icon":24},"Overloading","/features/overloading","3.features/5.overloading",{"title":107,"path":108,"stem":109,"icon":24},"Lambda","/features/lambda","3.features/6.lambda",{"title":111,"path":112,"stem":113,"icon":24},"Callback","/features/callback","3.features/7.callback",{"title":115,"path":116,"stem":117,"icon":24},"Auto","/features/auto","3.features/8.auto",{"title":119,"icon":6,"path":120,"stem":121,"children":122,"page":6},"Advance Features","/advance","4.advance",[123,127,131,135,139,143],{"title":124,"path":125,"stem":126,"icon":24},"Generic Type","/advance/generic-type","4.advance/1.generic-type",{"title":128,"path":129,"stem":130,"icon":24},"Errors","/advance/error","4.advance/2.error",{"title":132,"path":133,"stem":134,"icon":24},"Annotation","/advance/annotation","4.advance/3.annotation",{"title":136,"path":137,"stem":138,"icon":24},"Variadic Function","/advance/variadic-func","4.advance/4.variadic-func",{"title":140,"path":141,"stem":142,"icon":24},"Module","/advance/module-interface","4.advance/5.module-interface",{"title":144,"path":145,"stem":146,"icon":24},"Operator Overloading","/advance/operator-overloading","4.advance/6.operator-overloading",{"title":148,"icon":6,"path":149,"stem":150,"children":151,"page":6},"Struct","/struct","5.struct",[152,155,159,163,167],{"title":148,"path":153,"stem":154,"icon":24},"/struct/struct","5.struct/1.struct",{"title":156,"path":157,"stem":158,"icon":24},"Methods","/struct/methods","5.struct/2.methods",{"title":160,"path":161,"stem":162,"icon":24},"Init/Deinit","/struct/init-deinit","5.struct/3.init-deinit",{"title":164,"path":165,"stem":166,"icon":24},"Encapsulation","/struct/encapsulation","5.struct/4.encapsulation",{"title":168,"path":169,"stem":170,"icon":24},"Static","/struct/static","5.struct/5.static",{"title":172,"icon":6,"path":173,"stem":174,"children":175,"page":6},"Data Structures","/data-structure","6.data-structure",[176,180],{"title":177,"path":178,"stem":179,"icon":24},"Array","/data-structure/array","6.data-structure/array",{"title":181,"path":182,"stem":183,"icon":24},"Structural Type","/data-structure/strutural-type","6.data-structure/strutural-type",{"title":185,"icon":6,"path":186,"stem":187,"children":188,"page":6},"Standard Libraries","/stdlib","7.stdlib",[189,194],{"title":190,"path":191,"stem":192,"icon":193},"stdlib","/stdlib/stdlib","7.stdlib/stdlib","i-lucide-library-big",{"title":195,"path":196,"stem":197,"icon":24},"syscall","/stdlib/syscall","7.stdlib/syscall",{"id":199,"title":21,"body":200,"description":398,"extension":399,"links":400,"meta":401,"navigation":402,"path":22,"seo":403,"stem":23,"__hash__":404},"docs/1.getting-started/4.quickstart.md",{"type":201,"value":202,"toc":395},"minimark",[203,207,212,220,228,235,238,327,335,338,355,362,371,377,385,391],[204,205,206],"p",{},"This quick start page introduces the basics of writing and running your first program in Cambo. The goal is to establish a clear foundation so you can understand how programs are organized and begin to develop more complex applications.",[208,209,211],"h2",{"id":210},"hello-world","Hello World!",[204,213,214,215,219],{},"A ",[216,217,218],"strong",{},"\"hello, world!\""," program is simple program that prints the message \"hello, world!\" to the screen, typically in a terminal or console. It's traditionally the first program written when learning a new programming language.",[204,221,222,223,227],{},"To begin, create a file with ",[224,225,226],"code",{},".kh"," extension using your prefered code editor. This file will contain your program's source code.",[204,229,230,231,234],{},"Like many programming languages, Cambo has a defined entry point called ",[224,232,233],{},"main"," function, which serves as the starting point of the program execution.",[204,236,237],{},"You can copy and paste the following code into your file.",[239,240,246],"pre",{"className":241,"code":242,"filename":243,"language":244,"meta":245,"style":245},"language-kh shiki shiki-themes material-theme-lighter one-light one-dark-pro","int main(string args[]){\n\n  print(\"hello, world!\");\n\n  return 0;\n}\n","main.kh","kh","",[224,247,248,275,282,303,308,321],{"__ignoreMap":245},[249,250,253,257,261,265,269,272],"span",{"class":251,"line":252},"line",1,[249,254,256],{"class":255},"s8dPH","int",[249,258,260],{"class":259},"spnjr"," main",[249,262,264],{"class":263},"sM89C","(",[249,266,268],{"class":267},"sQsOY","string",[249,270,271],{"class":255}," args",[249,273,274],{"class":263},"[]){\n",[249,276,278],{"class":251,"line":277},2,[249,279,281],{"emptyLinePlaceholder":280},true,"\n",[249,283,285,288,290,294,298,300],{"class":251,"line":284},3,[249,286,287],{"class":259},"  print",[249,289,264],{"class":263},[249,291,293],{"class":292},"sVH1b","\"",[249,295,297],{"class":296},"spZWa","hello, world!",[249,299,293],{"class":292},[249,301,302],{"class":263},");\n",[249,304,306],{"class":251,"line":305},4,[249,307,281],{"emptyLinePlaceholder":280},[249,309,311,314,318],{"class":251,"line":310},5,[249,312,313],{"class":267},"  return",[249,315,317],{"class":316},"sriKn"," 0",[249,319,320],{"class":263},";\n",[249,322,324],{"class":251,"line":323},6,[249,325,326],{"class":263},"}\n",[328,329,330,331,334],"tip",{},"Read more about the ",[332,333,233],"a",{"href":37}," function!",[204,336,337],{},"Then, compile the program using the following command:",[239,339,344],{"className":340,"code":341,"filename":342,"language":343,"meta":245,"style":245},"language-bash shiki shiki-themes material-theme-lighter one-light one-dark-pro","cambo main.kh\n","Terminal","bash",[224,345,346],{"__ignoreMap":245},[249,347,348,352],{"class":251,"line":252},[249,349,351],{"class":350},"stT07","cambo",[249,353,354],{"class":296}," main.kh\n",[204,356,357,358,361],{},"Cambo compiler will generate an executable named ",[224,359,360],{},"a.out",", which you can then run",[239,363,365],{"className":340,"code":364,"filename":342,"language":343,"meta":245,"style":245},"./a.out\n",[224,366,367],{"__ignoreMap":245},[249,368,369],{"class":251,"line":252},[249,370,364],{"class":350},[204,372,373,374,376],{},"Finally the phrase ",[224,375,297],{}," will be printed in your teminal",[239,378,383],{"className":379,"code":381,"filename":342,"language":382,"meta":245},[380],"language-text","hello, world!\n","text",[224,384,381],{"__ignoreMap":245},[328,386,387,388,390],{},"As a good practice, the source file containing the main function is often named ",[224,389,243],{},".",[392,393,394],"style",{},"html pre.shiki code .s8dPH, html code.shiki .s8dPH{--shiki-light:#90A4AE;--shiki-default:#E45649;--shiki-dark:#E06C75}html pre.shiki code .spnjr, html code.shiki .spnjr{--shiki-light:#6182B8;--shiki-default:#4078F2;--shiki-dark:#61AFEF}html pre.shiki code .sM89C, html code.shiki .sM89C{--shiki-light:#90A4AE;--shiki-default:#383A42;--shiki-dark:#ABB2BF}html pre.shiki code .sQsOY, html code.shiki .sQsOY{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#A626A4;--shiki-default-font-style:inherit;--shiki-dark:#C678DD;--shiki-dark-font-style:inherit}html pre.shiki code .sVH1b, html code.shiki .sVH1b{--shiki-light:#39ADB5;--shiki-default:#50A14F;--shiki-dark:#98C379}html pre.shiki code .spZWa, html code.shiki .spZWa{--shiki-light:#91B859;--shiki-default:#50A14F;--shiki-dark:#98C379}html pre.shiki code .sriKn, html code.shiki .sriKn{--shiki-light:#F76D47;--shiki-default:#986801;--shiki-dark:#D19A66}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .stT07, html code.shiki .stT07{--shiki-light:#E2931D;--shiki-default:#4078F2;--shiki-dark:#61AFEF}",{"title":245,"searchDepth":277,"depth":277,"links":396},[397],{"id":210,"depth":277,"text":211},"Your first program — simple, clear and a perfect starting point.","md",null,{},{"icon":24},{"title":21,"description":398},"sBATWmc6q_bT5Tbb1-mlmRnYR-iNm6yGBKGp6G5CZRI",[406,408],{"title":16,"path":17,"stem":18,"description":407,"icon":19,"children":-1},"Get started with Cambo.",{"title":26,"path":27,"stem":28,"description":409,"icon":29,"children":-1},"Common issues and their solutions when working with Cambo.",1774971227269]