In this page
--
- {{ TOC_ENTRIES }}
-
diff --git a/cli/modules/std_math.c b/cli/modules/std_math.c index 7afe746..1247f52 100644 --- a/cli/modules/std_math.c +++ b/cli/modules/std_math.c @@ -32,7 +32,7 @@ DEF(stdMathCeil, } DEF(stdMathPow, - "pow(value:num) -> num\n") { + "pow(a:num, b:num) -> num\n") { double num, ex; if (!pkValidateSlotNumber(vm, 1, &num)) return; diff --git a/docs/.nojekyll b/docs/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/docs/404.html b/docs/404.html new file mode 100644 index 0000000..7539307 --- /dev/null +++ b/docs/404.html @@ -0,0 +1,46 @@ + + +
+ + + + ++Pocketlang is a lightweight & fast object oriented programming language designed for embedding and +scripting. Including the compiler, bytecode VM and runtime it's a standalone executable +which is less than 300KB and the language itself can be compiled in less than +4s without any external dependencies. +
+ +{feature["desc"]}
') - write(f' Learn more') - write('\n'
- in_code = True
-
- ## End of codeblock.
- elif in_code and stripped_line.startswith('```'):
- md_new += '
\n'
- in_code = False
-
- else:
- if in_code: line = html.escape(line)
- md_new += line + "\n"
-
- return markdown(md_new), topics
-
-## Collect all markdown and generate the context (context is mentioned at the
-## top of the script).
-def collect_doc_pages():
- context = dict()
- for section in DOC_PAGES:
- context[section] = dict()
- for file_name in DOC_PAGES[section]:
- md = read(join(MARKDOWN_DIR, section, file_name + '.md'))
- context[section][file_name] = compile_markdown(md)
- return context
-
-## Generate navigation tree html tags with the tree information defined at the
-## markdown/tree.json file (since python 3.6 dicionaries are ordered we're not
-## using the OrderedDict here).
-def generate_navtree(context):
- gen = ""; indentation = ' ' * 4
- def write(html_line):
- nonlocal gen; nonlocal indentation
- gen += indentation + html_line + '\n'
-
- for section in context:
- write('- It's a dynamic typed, highlevel language language designed for scripting and - embedding easily. Supports classes, first class functions, closures, REPL, - garbage collection, fiber based concurrency, and more. -
- -- With mixed syntax of ruby and python, that can be learned in less than an hour, and it's - easy to embed into another application for scripting. Here is a smaple pocketlang code. -
-{{ WHAT_IT_LOOKS_LIKE }}
-