Screenshot_2023-05-18_18-12-10.png
197.4 KB
It's a small code, look for good
-210334_temp.jpg
6.9 KB
Canva is a clear thief, I will not let them rob me
Hack And Build Lab ๐ฃ
-210334_temp.jpg
yes, without notifying you or not telling you the purpose, canva will takes the money
I will post it on github wherever I do, welcome to participate
โค1
This media is not supported in your browser
VIEW IN TELEGRAM
when the exam is near
x = (void*)0;
x = (void*)0;
๐1
I've given up on lua, but reading extensively on lua and all opensource languages I wanted to build a language from scratch.
Hack And Build Lab ๐ฃ
main.c
This code is used to separate any ID, STRING, SEMICOLON, BRACKET
Lexer, parser, and visitor are three important components of a compiler or interpreter.
A lexer (short for lexical analyzer) is responsible for breaking down the input source code into a sequence of tokens. Tokens are the smallest units of meaning in a programming language, such as keywords, identifiers, operators, and literals.
A parser is responsible for analyzing the sequence of tokens produced by the lexer and constructing a parse tree, which represents the syntactic structure of the program. The parse tree is a hierarchical structure that shows how the different parts of the program are related to each other.
A visitor is a design pattern that is often used in conjunction with a parse tree. A visitor allows you to traverse the parse tree and perform some operation on each node. For example, you might use a visitor to evaluate the value of an expression, or to generate code for a particular target platform. The visitor pattern separates the algorithm from the data structure, making it easier to add new operations without modifying the existing code.
A lexer (short for lexical analyzer) is responsible for breaking down the input source code into a sequence of tokens. Tokens are the smallest units of meaning in a programming language, such as keywords, identifiers, operators, and literals.
A parser is responsible for analyzing the sequence of tokens produced by the lexer and constructing a parse tree, which represents the syntactic structure of the program. The parse tree is a hierarchical structure that shows how the different parts of the program are related to each other.
A visitor is a design pattern that is often used in conjunction with a parse tree. A visitor allows you to traverse the parse tree and perform some operation on each node. For example, you might use a visitor to evaluate the value of an expression, or to generate code for a particular target platform. The visitor pattern separates the algorithm from the data structure, making it easier to add new operations without modifying the existing code.