<commit_before># **SAGE**
***

## **GRAMMER**
```
program         -> declaration* EOF ;
declaration     -> func_decl | let_decl | statement ;
func_decl       -> "fn" IDENTIFIER "(" parameters? ")" block_stmt ;
parameters      -> IDENTIFIER ( "," IDENTIFIER )* ;
let_decl        -> "let" IDENTIFIER ( "=" expression )? NL ;
statement       -> if_stmt | while_stmt | for_stmt
                 | print_stmt | block_stmt | expr_stmt ;
if_stmt         -> "if" expression block_stmt ( "else" block_stmt )? ;
while_stmt      -> "while" expression block_stmt ;
for_stmt        -> "for" init_clause expression? ";" expression? block_stmt ;
init_clause     -> loop_let | loop_expr | ";" ;
loop_let        -> "let" IDENTIFIER ( "=" expression )? ";" ;
loop_expr       -> expression ";" ;
print_stmt      -> "print" ( expression ( "," expression )* )? NL ;
block_stmt      -> "{" NL declaration* "}" NL ;
expr_stmt       -> expression NL ;

expression      -> assignment ;<commit_msg>:memo: docs(return): updated the docs for return statement<commit_after># **SAGE**
***

## **GRAMMER**
```
program         -> declaration* EOF ;
declaration     -> func_decl | let_decl | statement ;
func_decl       -> "fn" IDENTIFIER "(" parameters? ")" block_stmt ;
parameters      -> IDENTIFIER ( "," IDENTIFIER )* ;
let_decl        -> "let" IDENTIFIER ( "=" expression )? NL ;
statement       -> if_stmt | while_stmt | for_stmt | return_stmt
                 | print_stmt | block_stmt | expr_stmt ;
if_stmt         -> "if" expression block_stmt ( "else" block_stmt )? ;
while_stmt      -> "while" expression block_stmt ;
for_stmt        -> "for" init_clause expression? ";" expression? block_stmt ;
init_clause     -> loop_let | loop_expr | ";" ;
loop_let        -> "let" IDENTIFIER ( "=" expression )? ";" ;
loop_expr       -> expression ";" ;
return_stmt     -> "return" expression? NL ;
print_stmt      -> "print" ( expression ( "," expression )* )? NL ;
block_stmt      -> "{" NL declaration* "}" NL ;
expr_stmt       -> expression NL ;

expression      -> assignment ;
{'fraction_non_alphanumeric': 0.154296875, 'fraction_numerical': 0.0, 'mean_word_length': 2.7186932849364793, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 36, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1647296', 'n_tokens_mistral': 638, 'n_tokens_neox': 629, 'n_words': 150}