-
📚 Language Specification
- Syntax and Grammar:
- Variables:
var x = 10;
- Arithmetic operations:
+
,-
,*
,/
- Comparison operators:
==
,!=
,<
,>
,<=
,>=
- Control flow:
if
,else
,while
,for
- Functions:
func add(a, b) { return a + b; }
- Variables:
- Data Types:
int
,float
,bool
,string
- Syntax and Grammar:
-
🧩 Lexical structure — (recursive descent parser for simplicity)
- Lexical structure:
- Keywords:
var
,if
,else
,while
,for
,func
,return
- Identifiers: Alphanumeric characters and underscores, starting with a letter or underscore.
- Literals: Integers, floating-point numbers, booleans (
true
,false
), strings (enclosed in double quotes). - Operators:
+
,-
,*
,/
,==
,!=
,<
,>
,<=
,>=
,=
- Delimiters:
(
,)
,{
,}
,;
- Keywords:
- Lexical structure:
-
Notifications
You must be signed in to change notification settings - Fork 0
Nutri-lang is an educational programming language designed to showcase the inner workings and concepts behind interpretive languages. It serves as a simple and straightforward example to demonstrate how source code is parsed, interpreted, and executed in a step-by-step manner.
0xa48rx394r83e9/Nutri-lang
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Nutri-lang is an educational programming language designed to showcase the inner workings and concepts behind interpretive languages. It serves as a simple and straightforward example to demonstrate how source code is parsed, interpreted, and executed in a step-by-step manner.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published