You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,30 @@
1
-
# 🌌 Astronomical Query Viewer
1
+
# 🌌 ASTronomical Query Viewer
2
2
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.
4
4
5
5
**🚀 [Try it live](https://retirejs.github.io/astronomical-viewer/)**
6
6
7
7
## What is this?
8
8
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:
10
10
11
11
-**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
13
13
-**Visual Feedback** - Matched nodes are highlighted with their ancestors marked for easy navigation
14
14
-**Persistent State** - Your code and queries are saved in localStorage
15
15
16
16
## Features
17
17
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
19
19
- 🌳 **Full AST Visualization** - Explore the entire syntax tree with expand/collapse functionality
20
20
- 🎯 **Match Highlighting** - Matched nodes shown in yellow, ancestors in gray
21
21
- 💾 **Auto-Save** - Your work persists across browser sessions
22
22
- 🔍 **Primitive Results** - Shows both matched AST nodes and primitive values (strings, numbers, booleans)
23
23
- ⚡ **Real-time Updates** - Execute queries and see results instantly
24
24
25
-
## What is Astronomical?
25
+
## What is ASTronomical?
26
26
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:
28
28
29
29
```
30
30
//FunctionDeclaration/:id/:name # Get all function names
@@ -35,7 +35,7 @@ Astronomical Query Viewer helps you visualize and test [Astronomical](https://gi
35
35
## Usage
36
36
37
37
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)
39
39
3.**Click "Execute Query"** to see matches
40
40
4.**Explore the AST** - Click nodes to expand/collapse the tree
41
41
@@ -92,12 +92,12 @@ npm run lint
92
92
-**Vue 3** - Progressive JavaScript framework
93
93
-**TypeScript** - Type safety and better developer experience
94
94
-**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)
97
97
98
98
## Known Limitations
99
99
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
101
101
- The viewer shows the static AST structure and doesn't have access to runtime context
102
102
103
103
## Contributing
@@ -110,6 +110,6 @@ This project is open source. See LICENSE file for details.
110
110
111
111
## Related Projects
112
112
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
114
114
-[AST Explorer](https://astexplorer.net/) - General purpose AST visualization tool
115
115
-[Regexr](https://regexr.com/) - Similar interactive tool for regular expressions
0 commit comments