Skip to content

Commit

Permalink
update cursors example
Browse files Browse the repository at this point in the history
  • Loading branch information
yamaguchi1024 committed Oct 27, 2024
1 parent e64f43b commit 9faaa95
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
16 changes: 8 additions & 8 deletions examples/cursors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ This tutorial demonstrates a simple application of Cursors using the tile2D exam

## Overview

Learn how to use Cursors to navigate and transform Exo object code. Cursors are powerful tools that allow you to:
Learn how to use Cursors to navigate and transform Exo object code. Cursors allow you to:
- Select and reference specific code elements (expressions, statements, blocks)
- Navigate spatially within procedures
- Apply transformations to your code
- Apply optimization

## Key Concepts

This tutorial covers:
- Pattern-based cursor identification
- Cursor navigation techniques
This example covers the key concepts presented in the paper:
- Finding Cursors with pattern-matching
- Cursor navigation
- Applying scheduling primitives using cursors
- Cursor forwarding after code transformations
- Defining a new scheduling operation

## Getting Started

To run this example:
```bash
exocc cursors.py
```
Running `exocc` on `cursors.py` will generate the C code in the `cursors/cursors.c` file.
It will also print out the intermediate steps of the example.

Notes:
- The tutorial uses the tile2D example for demonstration
- Focus is placed on fundamental cursor operations
9 changes: 5 additions & 4 deletions examples/cursors/cursors.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
to proximate locations.
Key concepts covered:
- Finding cursors using patterns
- Navigating using cursors
- Applying scheduling primitives with cursors
- Forwarding cursors after transformations
- Finding Cursors with pattern-matching
- Cursor navigation
- Applying scheduling primitives using cursors
- Cursor forwarding after code transformations
- Defining a new scheduling operation
"""


Expand Down

0 comments on commit 9faaa95

Please sign in to comment.