Tokens in python,C, C++, Java | part 1 | Keywords | identifiers | operators | Data Types
ฝัง
- เผยแพร่เมื่อ 30 ก.ย. 2024
- Here’s an overview of tokens in programming languages like Python, C, C++, and Java. Tokens are the smallest units of a program that the compiler or interpreter understands. These typically include keywords, identifiers, operators, and data types.
1. Keywords
Reserved words in a programming language that have predefined meanings and cannot be used as identifiers (variable names, function names, etc.).
2. Identifiers
Names given to variables, functions, classes, etc. They must begin with a letter or underscore and can be followed by letters, digits, or underscores
3. Operators
Symbols used to perform operations on variables and values.
4. Data Types
Specifies the type of data that can be stored in a variable.
Hashtags in the description:
• #cbytes: Likely refers to working with bytes in C or C-based languages, dealing with low-level memory manipulation.
This is Part 1 of a breakdown of tokens, focusing on Keywords, Identifiers, Operators, and Data Types across Python, C, C++, and Java.