Option type support #224

Merged
sb10q merged 8 commits from option into master 2022-03-26 15:09:15 +08:00

8 Commits

Author SHA1 Message Date
ychenfo 7ede18429f nac3core/artiq: raise dedicated UnwrapNoneError 2022-03-26 14:09:17 +08:00
ychenfo ddc7687ac6 nac3standalone: add tests for option 2022-03-26 13:23:57 +08:00
ychenfo 762a7ccc14 nac3core/artiq: use none instead of None 2022-03-26 13:23:57 +08:00
ychenfo 71d92a7a18 nac3artiq/core: host option object support 2022-03-26 13:23:57 +08:00
ychenfo 1aa698ccc7 nac3core: option type codegen support 2022-03-26 13:23:53 +08:00
ychenfo be6b6c9440 nac3core: remove previous handling of None
not to confuse with option none, and the None token is parsed as a special ast::constant instead of an ast::name so the handling is invalid
2022-03-26 13:23:27 +08:00
ychenfo 38f856e956 nac3core: fix broken tests 2022-03-26 13:23:27 +08:00
ychenfo 62d13e297c nac3core: option type front end 2022-03-26 13:23:23 +08:00