Skip to content

Commit a1fcdcc

Browse files
authored
Update 3-Lexer.md
1 parent 463a760 commit a1fcdcc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tutorial/en/3-Lexer.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ information. In the main function, add the following:
519519
// types of variable/function
520520
enum { CHAR, INT, PTR };
521521
int *idmain; // the `main` function
522-
void main() {
522+
int main() {
523523
...
524524

525525
src = "char else enum if int return sizeof while "
@@ -547,6 +547,7 @@ void main() {
547547

548548
...
549549
program();
550+
return eval();
550551
}
551552
```
552553

0 commit comments

Comments
 (0)