Commit Graph

232 Commits

Author SHA1 Message Date
Sven Vogel 3e6469e239 added parser rule for function calling 2024-04-29 14:12:27 +02:00
Sven Vogel 7547331705 added rules for operators 2024-04-29 12:39:44 +02:00
Felix Müller 6de4196c0a created lexer rule for comments
deleted lexer rule for '#'
added parser rule for statement
sorted parser rules
2024-04-28 23:46:12 +02:00
Sven Vogel 897de1b8e1 fixed spelling mistake 2024-04-26 17:36:20 +02:00
Sven Vogel d718b8f812 reversed change from devkit 2024-04-26 17:35:27 +02:00
Sven Vogel dd867db271 Added identifier lists 2024-04-26 17:30:22 +02:00
Sven Vogel 3c0a885186 added parser rules for declaration, assignment, definition 2024-04-26 16:53:41 +02:00
Sven Vogel f6df192686 added counter examples to yacc 2024-04-26 16:53:04 +02:00
SirTalksalot75 c5d70fdf7e
Merge pull request #25 from Servostar/4-Read-Source-File
4 read source file
2024-04-26 16:25:12 +02:00
Ur Mom 72bba3278a updated main.c 2024-04-26 16:21:54 +02:00
SirTalksalot75 cebe5c5bf4
Merge pull request #32 from Servostar/main
Update for branch 4
2024-04-26 16:16:21 +02:00
SirTalksalot75 7c1ec9b6e7
Merge pull request #31 from Servostar/30-fix-build-on-windows
30 fix build on windows
2024-04-26 16:15:16 +02:00
Sven Vogel e918139f88 added recurse 2024-04-26 15:37:17 +02:00
SirTalksalot75 5f53d1dce4
Update main.c
changed indendation and declared and initialized yyin after file opening
2024-04-25 14:02:12 +02:00
Sven Vogel 6f30be17e9 added dependency section in README 2024-04-24 23:58:15 +02:00
Sven Vogel df927cf7d6 fixed flag error and made option nounistd in lexer depend on compiler used 2024-04-24 22:47:59 +02:00
Sven Vogel 8cd1f2fb0d added compile flags which differ for MSVC and other compiler (GCC/Clang) 2024-04-24 22:37:21 +02:00
Sven Vogel d673d1de0a removed dependency of unistd.h from lexer 2024-04-24 22:36:58 +02:00
Sven Vogel 501f6f1602 file name macro searches for last char instead of last string 2024-04-24 22:31:35 +02:00
Sven Vogel 4f5cf6408e added blueprint for AST library 2024-04-23 15:58:07 +02:00
SirTalksalot75 520520e576
Update main.c
moved atexit() to setup
2024-04-23 15:27:11 +02:00
SirTalksalot75 fafcb942e0
Update main.c
fixed typo, and changed close_file function
2024-04-23 14:38:30 +02:00
SirTalksalot75 dad9cbb93a
Update main.c
fixed typo
2024-04-23 14:32:00 +02:00
SirTalksalot75 7797595fef
Update main.c
added File Insertion through arguments
2024-04-23 14:25:49 +02:00
servostar 615559a825
Merge pull request #27 from Servostar/20-make-devkit-pull-current-source-from-github
20 make devkit pull current source from GitHub
2024-04-23 12:05:53 +00:00
SirTalksalot75 67efb13fe4
Merge pull request #28 from Servostar/main
Branch update
2024-04-22 15:59:40 +02:00
SirTalksalot75 a85558e118
Update main.c
changed close_file Function
changed ERROR to PANIC
2024-04-22 14:01:18 +02:00
SirTalksalot75 05d603f7ac
Update main.c
added Function for file closing
2024-04-22 13:41:37 +02:00
Sven Vogel ebb29807c8 bumped SDK version to 0.2.1 2024-04-22 13:31:20 +02:00
Sven Vogel aa7c62f021 Devkit now pulls source from main branch of the repository
Added git to SDK
Bumped version from 0.2.0 to 0.2.1
2024-04-22 13:15:33 +02:00
SirTalksalot75 4976aeb22f
Update main.c
fixed typo
2024-04-22 12:57:49 +02:00
SirTalksalot75 6d249dd9ea
Update main.c
deleted fclose()
2024-04-22 12:54:20 +02:00
SirTalksalot75 6fca12df39
modified main.c
-added Error-message from Logging API.
-changed exit and moved after yyparse()
-added extern for file name
todo: make file name user input variable.
2024-04-22 12:53:48 +02:00
Filleo c38abad400
Merge pull request #24 from Servostar/21-add-debug-print-into-tokenizer
21 add debug print into tokenizer
2024-04-22 12:29:43 +02:00
SirTalksalot75 1cfe9485e9
added case for missing input of file to main.c 2024-04-22 11:51:27 +02:00
Felix Müller cf810ca375 removed spaces 2024-04-22 11:45:50 +02:00
Felix Müller a0a91d6c78 added numbers to Ident token 2024-04-22 11:11:02 +02:00
Felix Müller 853bf09c96 changed Keyword for unsigned
added debug message for lexer
2024-04-22 10:43:33 +02:00
SirTalksalot75 e90cd80fbe
added prototype for File-reading to main.c 2024-04-21 22:48:29 +02:00
servostar d6eaf6debf
Merge pull request #19 from Servostar/18-write-new-sdk-based-on-alpine-to-run-newer-gcc-version-114
18 write new sdk based on alpine to run newer gcc version 114
2024-04-17 14:16:49 +00:00
Sven Vogel f61317b123 removed unecessary header from log.h 2024-04-17 16:06:53 +02:00
Sven Vogel 82f576adf8 adapted docker files of SDK and DEVKIT to use alpine instead of alma 2024-04-17 16:06:23 +02:00
Filleo 30ebbf51fa
Merge pull request #15 from Servostar/5-create-tokenizer
5 create tokenizer
2024-04-17 15:23:47 +02:00
Filleo 5a519ab8a7
Merge pull request #16 from Servostar/11-make-yyerror-use-error
added printing of the string of `yyerror` with `ERROR`
2024-04-17 15:23:30 +02:00
servostar 159ab707fe
Merge pull request #14 from Servostar/13-fix-log-macro
13 fix log macro
2024-04-17 13:22:22 +00:00
Felix Müller 1e33cc7965 added printing of the string of `yyerror` with `ERROR` 2024-04-17 15:03:21 +02:00
Felix Müller e8bfc348be removed sign in number tokenizer
pass floats and integer as strings
2024-04-17 09:12:29 +02:00
Felix Müller 7e06e5ade7 Merge branch '5-create-tokenizer' of https://github.com/Servostar/gemstone into 5-create-tokenizer 2024-04-16 19:58:02 +02:00
Felix Müller 74befb4edd added signs to integer
removed linebrakes
added floats as "real"
changed Keyword for single symbol Operators
2024-04-16 19:54:09 +02:00
Filleo c18131fa90
Merge branch 'main' into 5-create-tokenizer 2024-04-15 22:22:57 +02:00