-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Denis-Olejnik/dev
Updated README
- Loading branch information
Showing
20 changed files
with
75 additions
and
61 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,40 @@ | ||
# Lexical analyzer | ||
|
||
The program performs lexical analysis of a program written in the Pascal programming language. | ||
The program implements lexical and syntactic parsers. The program is written for code that is very similar to Pascal (PascalABC). | ||
|
||
![OnStartupPic](/readme/LexicalAnalyzer_OnStartup.png?raw=true) | ||
### Implemented features | ||
- Lexical analyzer | ||
- Syntax analyzer | ||
- Basic error search (Unknown type/value) | ||
|
||
![ReadsFilePic](/readme/LexicalAnalyzer_ReadsFile.png?raw=true) | ||
|
||
![LexicalTablePic](/readme/LexicalAnalyzer_LexicalTable.png?raw=true) | ||
|
||
![ErrorExamplePic](/readme/LexicalAnalyzer_ErrorExample.png?raw=true) | ||
### Implemented lexems | ||
- Variable ("true" and "true1" are different) | ||
- States (true, false) | ||
- Separators (';' does not equal ':') | ||
|
||
## Not implemented: | ||
- Search for errors in the logic or spelling of lexemes | ||
- Floating point number detection | ||
- Arrays[] | ||
- ... | ||
- A lot of other things. | ||
- Arrays [] | ||
- Loops (for, while, etc) | ||
- A lot of other things. | ||
|
||
## Screenshots | ||
![Program startup](/readme/0_Startup.png) | ||
|
||
![Source file example](/readme/1_SourceFileExample.png) | ||
|
||
![Lexical table example](/readme/2_LexicalTableExample.png) | ||
|
||
![Syntax tree example](/readme/3_SyntaxTreeExample.png) | ||
|
||
![Error example](/readme/4_ErrorExample.png) | ||
|
||
This abstract syntax tree is based on the file ```\Samples\Sample 2.txt``` | ||
![Abstract syntax tree for Sample code #1](/readme/_AbstractSyntaxTree.png) | ||
|
||
|
||
## License | ||
|
||
[MIT](https://choosealicense.com/licenses/mit/) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes