|
| 1 | +!!! warning |
| 2 | + This page is under construction. The content may be incomplete or incorrect. Submit an issue |
| 3 | + on [GitHub](https://github.com/QuEraComputing/kirin/issues/new) if you need help or want to |
| 4 | + contribute. |
| 5 | + |
| 6 | +# Core Python Dialects |
| 7 | + |
| 8 | +This page contains the core Python dialects that are used most frequently when designing an |
| 9 | +embedded DSL in Python. |
| 10 | + |
| 11 | +## Reference |
| 12 | + |
| 13 | +### Base |
| 14 | + |
| 15 | +::: kirin.dialects.py.base |
| 16 | + options: |
| 17 | + filters: |
| 18 | + - "!statement" |
| 19 | + show_root_heading: true |
| 20 | + show_if_no_docstring: true |
| 21 | + |
| 22 | +### Constant |
| 23 | + |
| 24 | +::: kirin.dialects.py.constant |
| 25 | + options: |
| 26 | + filters: |
| 27 | + - "!statement" |
| 28 | + show_root_heading: true |
| 29 | + show_if_no_docstring: true |
| 30 | + |
| 31 | +### UnaryOp |
| 32 | + |
| 33 | +::: kirin.dialects.py.unary.stmts |
| 34 | + options: |
| 35 | + filters: |
| 36 | + - "!statement" |
| 37 | + show_root_heading: true |
| 38 | + show_if_no_docstring: true |
| 39 | + |
| 40 | + |
| 41 | +### BinOp |
| 42 | + |
| 43 | +::: kirin.dialects.py.binop.stmts |
| 44 | + options: |
| 45 | + filters: |
| 46 | + - "!statement" |
| 47 | + show_root_heading: true |
| 48 | + show_if_no_docstring: true |
| 49 | + |
| 50 | +### Assertion |
| 51 | + |
| 52 | +::: kirin.dialects.py.assertion |
| 53 | + options: |
| 54 | + filters: |
| 55 | + - "!statement" |
| 56 | + show_root_heading: true |
| 57 | + show_if_no_docstring: true |
| 58 | + |
| 59 | +### Assignment |
| 60 | + |
| 61 | +::: kirin.dialects.py.assign |
| 62 | + options: |
| 63 | + filters: |
| 64 | + - "!statement" |
| 65 | + show_root_heading: true |
| 66 | + show_if_no_docstring: true |
| 67 | + |
| 68 | + |
| 69 | +### Unpack |
| 70 | + |
| 71 | +::: kirin.dialects.py.unpack |
| 72 | + options: |
| 73 | + filters: |
| 74 | + - "!statement" |
| 75 | + show_root_heading: true |
| 76 | + show_if_no_docstring: true |
| 77 | + |
| 78 | + |
| 79 | +### Boolean Operation |
| 80 | + |
| 81 | +::: kirin.dialects.py.boolop |
| 82 | + options: |
| 83 | + filters: |
| 84 | + - "!statement" |
| 85 | + show_root_heading: true |
| 86 | + show_if_no_docstring: true |
| 87 | + |
| 88 | +### Comparison |
| 89 | + |
| 90 | +::: kirin.dialects.py.cmp.stmts |
| 91 | + options: |
| 92 | + filters: |
| 93 | + - "!statement" |
| 94 | + show_root_heading: true |
| 95 | + show_if_no_docstring: true |
0 commit comments