blob: 5f6342f9193934d5ed927d444202450bcf4fdd6f [file] [log] [blame] [view]
# FIDL example: Calculator
This Calculator example shows how to construct a FIDL protocol with
bare-minimum functionality. You will build on this example by modifying the
methods to potentially return errors, composing a FIDL protocol with another,
and showing usage of other primitives.
## Getting started {#baseline}
<<_baseline_tutorial.md>>
## Improving the design {#variants}
Each of the following sections explores one potential way that you could iterate
on the original design. Rather than building on one another sequentially, each
presents an independent way in which the base case presented above may be
modified or improved.
<!-- DO_NOT_REMOVE_COMMENT (Why? See: /tools/fidl/scripts/canonical_example/README.md) -->
<!-- /DO_NOT_REMOVE_COMMENT (Why? See: /tools/fidl/scripts/canonical_example/README.md) -->