2026-02-14 17:43:26 +00:00
|
|
|
==================
|
|
|
|
|
Basic schedule
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
schedule WorkDay {
|
|
|
|
|
block morning {
|
|
|
|
|
08:00 -> 12:00
|
|
|
|
|
action: Work
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
|
(declaration
|
|
|
|
|
(schedule_declaration
|
|
|
|
|
name: (identifier)
|
|
|
|
|
body: (schedule_body
|
|
|
|
|
(schedule_block
|
|
|
|
|
name: (identifier)
|
|
|
|
|
time_range: (time_range
|
|
|
|
|
start: (time)
|
|
|
|
|
end: (time))
|
|
|
|
|
(block_field
|
|
|
|
|
name: (identifier)
|
|
|
|
|
value: (identifier)))))))
|
|
|
|
|
|
|
|
|
|
==================
|
2026-02-16 22:55:04 +00:00
|
|
|
Schedule with modifies
|
2026-02-14 17:43:26 +00:00
|
|
|
==================
|
|
|
|
|
|
2026-02-16 22:55:04 +00:00
|
|
|
schedule BakerDay modifies WorkDay {
|
2026-02-14 17:43:26 +00:00
|
|
|
block early_prep {
|
|
|
|
|
05:00 -> 08:00
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
|
(declaration
|
|
|
|
|
(schedule_declaration
|
|
|
|
|
name: (identifier)
|
2026-02-16 22:55:04 +00:00
|
|
|
modifies: (identifier)
|
2026-02-14 17:43:26 +00:00
|
|
|
body: (schedule_body
|
|
|
|
|
(schedule_block
|
|
|
|
|
name: (identifier)
|
|
|
|
|
time_range: (time_range
|
|
|
|
|
start: (time)
|
|
|
|
|
end: (time)))))))
|
|
|
|
|
|
|
|
|
|
==================
|
|
|
|
|
Schedule with override
|
|
|
|
|
==================
|
|
|
|
|
|
2026-02-16 22:55:04 +00:00
|
|
|
schedule CustomDay modifies BaseDay {
|
2026-02-14 17:43:26 +00:00
|
|
|
override work {
|
|
|
|
|
06:00 -> 14:00
|
|
|
|
|
intensity: "high"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
|
(declaration
|
|
|
|
|
(schedule_declaration
|
|
|
|
|
name: (identifier)
|
2026-02-16 22:55:04 +00:00
|
|
|
modifies: (identifier)
|
2026-02-14 17:43:26 +00:00
|
|
|
body: (schedule_body
|
|
|
|
|
(override_block
|
|
|
|
|
name: (identifier)
|
|
|
|
|
time_range: (time_range
|
|
|
|
|
start: (time)
|
|
|
|
|
end: (time))
|
|
|
|
|
(block_field
|
|
|
|
|
name: (identifier)
|
|
|
|
|
value: (string)))))))
|
|
|
|
|
|
|
|
|
|
==================
|
|
|
|
|
Schedule with recurrence
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
schedule WeeklySchedule {
|
|
|
|
|
recurrence MarketDay on Saturday {
|
|
|
|
|
block market {
|
|
|
|
|
06:00 -> 14:00
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
|
(declaration
|
|
|
|
|
(schedule_declaration
|
|
|
|
|
name: (identifier)
|
|
|
|
|
body: (schedule_body
|
|
|
|
|
(recurrence_block
|
|
|
|
|
name: (identifier)
|
|
|
|
|
day: (identifier)
|
|
|
|
|
(schedule_block
|
|
|
|
|
name: (identifier)
|
|
|
|
|
time_range: (time_range
|
|
|
|
|
start: (time)
|
|
|
|
|
end: (time))))))))
|