diff --git a/index.html b/index.html index 6318685..793f975 100644 --- a/index.html +++ b/index.html @@ -1,272 +1,302 @@ - - + - - -Hi Language + +Hi — a corely symbolic language + + + + - - - -
-
-
- -
Hi
-
-
-
-
- - -
-
+ + +
+
+
+
+
+

Hi — a corely symbolic language

+

Inspired by JavaScript. Designed to read the same in every culture.

+

+ Hi keeps the core of the language mostly symbols and uses words only when words are truly clearer. Fewer keywords, fewer fences to learning, more global legibility. +

+
    +
  • Declaration: :
  • +
  • Assignment: =
  • +
  • Private: # prefix
  • +
  • Blocks: {} is always both an object and a callable block
  • +
  • Print: _()
  • +
+

Below, code uses JavaScript highlighting while Hi’s highlighter is being finalized.

+
+
+
+
+ +
+
+
A quick taste
+
+ +
+
+
+
+
+ +
+
+
Blocks that think and hold state
+
+ +
+
+
+
+
+ +
+
+
Conditions, truthiness, and clarity
+
+ +
+
+
+
+
+ +
+
+
Arrays and iteration
+
+ +
+
+
+
+
+ +
+
+
Design notes
+
+ +
+
+
+
+
+ +
+
+
+
+
-
-
- - - - -- \`:\` for declaration. -- \`=\` for assignment. + -withParams("This string gets printed.") -\`\`\` + ---- - -### Data Structures: Arrays - -Arrays are ordered lists of values, declared with \`[]\`. - -\`\`\`js + -*Hi* provides symbols to control loop flow: + -*Hi* is in its early stages of development. The core concepts are taking shape, but there is much more to build and refine. This page will be updated as the language evolves. Thank you for taking a look. -`; -const md=window.markdownit({html:!0,highlight:(s,l)=>{if(l&&hljs.getLanguage(l))try{return hljs.highlight(s,{language:l,ignoreIllegals:!0}).value}catch(e){}return esc(s)}}); -contentEl.innerHTML=md.render(mdContent); -lucide.createIcons(); -const toggle=()=>{sidebar.classList.toggle('-translate-x-full');overlay.classList.toggle('hidden')}; -sidebarBtn.onclick=toggle;overlay.onclick=toggle; -}) + + + + + +