Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conf parser into server #15

Merged
merged 62 commits into from
Feb 6, 2024
Merged

Conf parser into server #15

merged 62 commits into from
Feb 6, 2024

Conversation

samih713
Copy link
Owner

@samih713 samih713 commented Feb 6, 2024

merge: Config-parser=>server

Taanviir and others added 30 commits January 24, 2024 16:58
- Added open error in webserv.hpp
- Changed parseConfigFile to parseJSON
- parseJSON reads from file and prints out lines for now
- Changed config_sample.conf to config_sample.json
- Updated config_sample to match subject requirements
- readFile reads json file and removes spaces, tabs, newlines, carriage
returns
- parseJSON prints text from json file
- Added sanitize and valgrind rules
- Removed fsanitize in test rule
- Added const to parseJSON()
- changed output to content
- added comments
- changed JSON_value to JsonValue
Taanviir and others added 28 commits January 30, 2024 14:21
- readFile has brief
- moved extractJSON up
- Updated comments
- moved `:` out from key block
- Removed union implementation to reduce code complexity
- Implemented classes JsonValue & JsonParser
- JsonValue contains definitions for str, int, vector, map types
    - Implemented getters and setters as well
    - Implemented enum for variable types
- JsonParser contains definitions for parsing functions
    - Also contains content and iterator as private variables
- Implemented JsonParser(), parseJSON()
- Added definitions for parsing functions
- Implemented parseObject(), parseArray()
- Implemented parseBoolean, parseNull, parseString, parseNumber
- Cleaned up parseObject
- Changed name of JsonValue result to parsedValue
- Added necessary whitespace
- Removed unnecessary variables, functions and typedefs
- Cleaned up all functions
- Implemented isEndOrDelimiter() to check for syntax errors
@samih713 samih713 merged commit 6d1f26a into server/ver-01.1 Feb 6, 2024
2 checks passed
@samih713 samih713 deleted the conf-parser branch February 6, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants