Skip to content

Commit 992b1fc

Browse files
author
Erlend Oftedal
committed
Astronomical -> ASTronomical
1 parent d033d3a commit 992b1fc

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
# 🌌 Astronomical Query Viewer
1+
# 🌌 ASTronomical Query Viewer
22

3-
An interactive JavaScript AST (Abstract Syntax Tree) explorer and query tool, similar to [Regexr](https://regexr.com/) but for the [Astronomical](https://github.com/RetireJS/astronomical) query language.
3+
An interactive JavaScript AST (Abstract Syntax Tree) explorer and query tool, similar to [Regexr](https://regexr.com/) but for the [ASTronomical](https://github.com/RetireJS/astronomical) query language.
44

55
**🚀 [Try it live](https://retirejs.github.io/astronomical-viewer/)**
66

77
## What is this?
88

9-
Astronomical Query Viewer helps you visualize and test [Astronomical](https://github.com/RetireJS/astronomical) queries against JavaScript code. It provides:
9+
ASTronomical Query Viewer helps you visualize and test [ASTronomical](https://github.com/RetireJS/astronomical) queries against JavaScript code. It provides:
1010

1111
- **Interactive AST Tree View** - See the complete Abstract Syntax Tree of your JavaScript code
12-
- **Query Testing** - Write and test Astronomical queries in real-time
12+
- **Query Testing** - Write and test ASTronomical queries in real-time
1313
- **Visual Feedback** - Matched nodes are highlighted with their ancestors marked for easy navigation
1414
- **Persistent State** - Your code and queries are saved in localStorage
1515

1616
## Features
1717

18-
- 📝 **Dual Pane Editor** - JavaScript code on one side, Astronomical queries on the other
18+
- 📝 **Dual Pane Editor** - JavaScript code on one side, ASTronomical queries on the other
1919
- 🌳 **Full AST Visualization** - Explore the entire syntax tree with expand/collapse functionality
2020
- 🎯 **Match Highlighting** - Matched nodes shown in yellow, ancestors in gray
2121
- 💾 **Auto-Save** - Your work persists across browser sessions
2222
- 🔍 **Primitive Results** - Shows both matched AST nodes and primitive values (strings, numbers, booleans)
2323
-**Real-time Updates** - Execute queries and see results instantly
2424

25-
## What is Astronomical?
25+
## What is ASTronomical?
2626

27-
[Astronomical](https://github.com/RetireJS/astronomical) is a query language for JavaScript ASTs, similar to XPath for XML. It allows you to search for specific patterns in JavaScript code using queries like:
27+
[ASTronomical](https://github.com/RetireJS/astronomical) is a query language for JavaScript ASTs, similar to XPath for XML. It allows you to search for specific patterns in JavaScript code using queries like:
2828

2929
```
3030
//FunctionDeclaration/:id/:name # Get all function names
@@ -35,7 +35,7 @@ Astronomical Query Viewer helps you visualize and test [Astronomical](https://gi
3535
## Usage
3636

3737
1. **Paste JavaScript code** into the top textarea
38-
2. **Write an Astronomical query** in the query field (supports multiline)
38+
2. **Write an ASTronomical query** in the query field (supports multiline)
3939
3. **Click "Execute Query"** to see matches
4040
4. **Explore the AST** - Click nodes to expand/collapse the tree
4141

@@ -92,12 +92,12 @@ npm run lint
9292
- **Vue 3** - Progressive JavaScript framework
9393
- **TypeScript** - Type safety and better developer experience
9494
- **Vite** - Fast build tool and dev server
95-
- **Astronomical** - JavaScript AST query engine
96-
- **Meriyah** - Fast ECMAScript parser (used by Astronomical)
95+
- **ASTronomical** - JavaScript AST query engine
96+
- **Meriyah** - Fast ECMAScript parser (used by ASTronomical)
9797

9898
## Known Limitations
9999

100-
- Astronomical's `/:$object` binding feature may fail for runtime-provided identifiers (like `exports`, `module`, `require` in CommonJS) that aren't explicitly declared in the source code
100+
- ASTronomical's `/:$object` binding feature may fail for runtime-provided identifiers (like `exports`, `module`, `require` in CommonJS) that aren't explicitly declared in the source code
101101
- The viewer shows the static AST structure and doesn't have access to runtime context
102102

103103
## Contributing
@@ -110,6 +110,6 @@ This project is open source. See LICENSE file for details.
110110

111111
## Related Projects
112112

113-
- [Astronomical](https://github.com/RetireJS/astronomical) - The query engine powering this viewer
113+
- [ASTronomical](https://github.com/RetireJS/astronomical) - The query engine powering this viewer
114114
- [AST Explorer](https://astexplorer.net/) - General purpose AST visualization tool
115115
- [Regexr](https://regexr.com/) - Similar interactive tool for regular expressions

src/components/AstronomicalViewer.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ const expandToResults = () => {
144144
<template>
145145
<div class="astronomical-viewer">
146146
<div class="header">
147-
<h1>🌌 Astronomical Query Viewer</h1>
147+
<h1>🌌 ASTronomical Query Viewer</h1>
148148
<p class="subtitle">
149149
Interactive JavaScript AST Explorer using
150-
<a href="https://www.npmjs.com/package/astronomical">Astronomical</a>
150+
<a href="https://www.npmjs.com/package/astronomical">ASTronomical</a>
151151
</p>
152152
</div>
153153

@@ -163,7 +163,7 @@ const expandToResults = () => {
163163
</div>
164164

165165
<div class="input-group">
166-
<label for="query-input">Astronomical Query:</label>
166+
<label for="query-input">ASTronomical Query:</label>
167167
<textarea
168168
id="query-input"
169169
v-model="queryString"

0 commit comments

Comments
 (0)