[{"data":1,"prerenderedAt":238},["ShallowReactive",2],{"navigation":3,"\u002Fguides\u002Fget-started-navigation":18,"\u002Fguides\u002Fget-started":23,"\u002Fguides\u002Fget-started-surround":234},[4],{"title":5,"path":6,"stem":7,"children":8,"page":17},"Guides","\u002Fguides","guides",[9,13],{"title":10,"path":11,"stem":12},"Get Started","\u002Fguides\u002Fget-started","guides\u002F1.get-started",{"title":14,"path":15,"stem":16},"Build from Source","\u002Fguides\u002Fbuild-from-source","guides\u002F2.build-from-source",false,[19],{"title":5,"path":6,"stem":7,"children":20,"page":17},[21,22],{"title":10,"path":11,"stem":12},{"title":14,"path":15,"stem":16},{"id":24,"title":10,"body":25,"description":35,"extension":228,"meta":229,"navigation":231,"path":11,"seo":232,"stem":12,"__hash__":233},"guides\u002Fguides\u002F1.get-started.md",{"type":26,"value":27,"toc":219},"minimark",[28,32,36,41,110,114,119,126,134,137,146,150,156,160,166,171,177,181,184,212,215],[29,30,10],"h1",{"id":31},"get-started",[33,34,35],"p",{},"This guide covers installation and basic usage of MathScript.",[37,38,40],"h2",{"id":39},"installation","Installation",[42,43,44,64,83],"ol",{},[45,46,47,48],"li",{},"Download the Installer",[49,50,51,61],"ul",{},[45,52,53,54],{},"Visit the ",[55,56,60],"a",{"href":57,"rel":58},"https:\u002F\u002Fgithub.com\u002FMathScript-Lang\u002FMathScript\u002Freleases",[59],"nofollow","MathScript releases page",[45,62,63],{},"Download the latest installer for your platform (Windows, macOS, or Linux)",[45,65,66,67],{},"Run the Installer",[49,68,69,72,75],{},[45,70,71],{},"Run the downloaded installer",[45,73,74],{},"Follow the installation wizard prompts",[45,76,77,78,82],{},"Choose your installation directory and your installation options (add to ",[79,80,81],"code",{},"PATH",", install MathGet, ...)",[45,84,85,86],{},"Verify Installation",[49,87,88,91],{},[45,89,90],{},"Open your terminal or command prompt",[45,92,93,94],{},"Run the following command:",[95,96,101],"pre",{"className":97,"code":98,"language":99,"meta":100,"style":100},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","mathscript --version\n","sh","",[79,102,103],{"__ignoreMap":100},[104,105,108],"span",{"class":106,"line":107},"line",1,[104,109,98],{},[37,111,113],{"id":112},"basic-usage","Basic Usage",[115,116,118],"h3",{"id":117},"your-first-program","Your first program",[33,120,121,122,125],{},"Create a file named ",[79,123,124],{},"hello.mscr",":",[95,127,132],{"className":128,"code":130,"language":131},[129],"language-text","print(\"Hello, MathScript!\");\n","text",[79,133,130],{"__ignoreMap":100},[33,135,136],{},"Run it:",[95,138,140],{"className":97,"code":139,"language":99,"meta":100,"style":100},"mathscript hello.mscr\n",[79,141,142],{"__ignoreMap":100},[104,143,144],{"class":106,"line":107},[104,145,139],{},[115,147,149],{"id":148},"command-line-options","Command-Line Options",[95,151,154],{"className":152,"code":153,"language":131},[129],"Description:\n  MathScript Interpreter & Compiler\n\nUsage:\n  mathscript [\u003CProgram>] [options]\n\nArguments:\n  \u003CProgram>  The MathScript program (.mscr file) to compile\u002Fexecute\n\nOptions:\n  -o, --Output, --output \u003COutput>    Compile the MathScript program into the `\u003COutput>` executable\n  -d, --Debug, --debug \u003CDebugLevel>  Set the debug level (Parser, Lexer, ParserLexer, All)\n  -?, -h, --help                     Show help and usage information\n  --version                          Show version information\n  -v, --Version                      Print version information\n",[79,155,153],{"__ignoreMap":100},[115,157,159],{"id":158},"examples","Examples",[95,161,164],{"className":162,"code":163,"language":131},[129],"int a = 3;\nint b = 2;\nint result = a + b;\nprint(result); \u002F\u002F Output: 5\n",[79,165,163],{"__ignoreMap":100},[167,168,170],"h4",{"id":169},"functions","Functions",[95,172,175],{"className":173,"code":174,"language":131},[129],"func int add(int x, int y) {\n    return x + y;\n}\n\nprint(add(5, 3)); \u002F\u002F Output: 8\n",[79,176,174],{"__ignoreMap":100},[37,178,180],{"id":179},"debug-levels","Debug Levels",[33,182,183],{},"Set the debug level to inspect parser, lexer and interpreter behavior:",[95,185,187],{"className":97,"code":186,"language":99,"meta":100,"style":100},"mathscript -d Parser program.mscr\nmathscript -d Lexer program.mscr\nmathscript -d ParserLexer program.mscr\nmathscript -d All program.mscr\n",[79,188,189,194,200,206],{"__ignoreMap":100},[104,190,191],{"class":106,"line":107},[104,192,193],{},"mathscript -d Parser program.mscr\n",[104,195,197],{"class":106,"line":196},2,[104,198,199],{},"mathscript -d Lexer program.mscr\n",[104,201,203],{"class":106,"line":202},3,[104,204,205],{},"mathscript -d ParserLexer program.mscr\n",[104,207,209],{"class":106,"line":208},4,[104,210,211],{},"mathscript -d All program.mscr\n",[33,213,214],{},"Use debug levels to troubleshoot parsing and execution of your programs.",[216,217,218],"style",{},"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);}",{"title":100,"searchDepth":196,"depth":196,"links":220},[221,222,227],{"id":39,"depth":196,"text":40},{"id":112,"depth":196,"text":113,"children":223},[224,225,226],{"id":117,"depth":202,"text":118},{"id":148,"depth":202,"text":149},{"id":158,"depth":202,"text":159},{"id":179,"depth":196,"text":180},"md",{"icon":230},"i-lucide-download",true,{"title":10,"description":35},"qrohbfIFS2D5Oz6fmzwDWf15vxeg5SwT0yjc-zyp9P8",[235,236],null,{"title":14,"path":15,"stem":16,"description":237,"children":-1},"Instructions for building MathScript from source code.",1777218334673]