mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
LibJS: Implement parsing of TemporalDateString
This commit is contained in:
parent
3f1af7c05f
commit
02e7de2cba
8 changed files with 27 additions and 13 deletions
|
@ -26,6 +26,8 @@ struct ParseResult {
|
|||
};
|
||||
|
||||
enum class Production {
|
||||
TemporalDateString,
|
||||
TemporalDateTimeString,
|
||||
};
|
||||
|
||||
Optional<ParseResult> parse_iso8601(Production, StringView);
|
||||
|
@ -74,6 +76,7 @@ public:
|
|||
[[nodiscard]] bool parse_time_spec_separator();
|
||||
[[nodiscard]] bool parse_date_time();
|
||||
[[nodiscard]] bool parse_calendar_date_time();
|
||||
[[nodiscard]] bool parse_temporal_date_string();
|
||||
|
||||
private:
|
||||
struct State {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue