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
21efb0563b74d5c29909e8c83f8c9b7fca88c5c5
j-lang/projects/if.j

4 lines
40 B
Plaintext
Raw Normal View History

Add if statements, unary minus, and fix GC safe points - Lexer: recognize 'if' as keyword (TOK_IF) - Parser: add NODE_IF with if_statement union, parse if/cond/body, handle unary minus in parse_term as 0 - expr - Eval: add NODE_IF evaluation, move GC to NODE_BLOCK level to avoid destroying temporary values during sub-expression evaluation
2026-02-16 05:12:28 +01:00
x = 20
if x < 10:
print x
print -300
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 33ms 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