Logo
Explore Help
Register Sign In
admin/j-lang
1
0
Fork 0
You've already forked j-lang
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
4442886afacfaccc8fe4e9964f2ba9be9e8c7e13
j-lang/projects/functions.j

3 lines
38 B
Plaintext
Raw Normal View History

Allow function calls in expressions and add len() built-in - Parse function calls in parse_term() so they work inside expressions (e.g. z = len(x), y = len(x) + 1) - Add len() built-in for string length in evaluator
2026-02-16 18:31:39 +01:00
x = "Hello"
Add // line comments, grouped parentheses, and NODE_NOP - Parse // comments in parse_statement by consuming tokens until newline - Add NODE_NOP for no-op statements (comments) - Support grouped expressions with parentheses in parse_term
2026-02-16 22:41:52 +01:00
y = 2 * (4 - 2)
println(y)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 34ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API