All Projects → titusjan → Astviewer

titusjan / Astviewer

Licence: mit
Python Abstract Syntax Tree viewer in Qt

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Astviewer

abstract-syntax-tree
A library for working with abstract syntax trees.
Stars: ✭ 77 (-23.76%)
Mutual labels:  ast, syntax-tree
Reshape
💠 transform html with javascript plugins
Stars: ✭ 314 (+210.89%)
Mutual labels:  ast, syntax-tree
astutils
Bare essentials for building abstract syntax trees, and skeleton classes for PLY lexers and parsers.
Stars: ✭ 13 (-87.13%)
Mutual labels:  ast, syntax-tree
sast
Parse CSS, Sass, SCSS, and Less into a unist syntax tree
Stars: ✭ 51 (-49.5%)
Mutual labels:  ast, syntax-tree
Mdast
Markdown Abstract Syntax Tree format
Stars: ✭ 493 (+388.12%)
Mutual labels:  ast, syntax-tree
MarkdownSyntax
☄️ A Type-safe Markdown parser in Swift.
Stars: ✭ 65 (-35.64%)
Mutual labels:  ast, syntax-tree
bright
Blazing fast parser for BrightScript that gives you ESTree like AST
Stars: ✭ 28 (-72.28%)
Mutual labels:  ast, syntax-tree
xast
Extensible Abstract Syntax Tree
Stars: ✭ 32 (-68.32%)
Mutual labels:  ast, syntax-tree
Unist
Universal Syntax Tree used by @unifiedjs
Stars: ✭ 438 (+333.66%)
Mutual labels:  ast, syntax-tree
Javaparser
Java 1-15 Parser and Abstract Syntax Tree for Java, including preview features to Java 13
Stars: ✭ 3,972 (+3832.67%)
Mutual labels:  ast, syntax-tree
Unified
☔️ interface for parsing, inspecting, transforming, and serializing content through syntax trees
Stars: ✭ 3,036 (+2905.94%)
Mutual labels:  ast, syntax-tree
Libdparse
Library for lexing and parsing D source code
Stars: ✭ 91 (-9.9%)
Mutual labels:  ast, syntax-tree
Escaya
An blazing fast 100% spec compliant, incremental javascript parser written in Typescript
Stars: ✭ 217 (+114.85%)
Mutual labels:  ast, syntax-tree
c-compiler
A compiler that accepts any valid program written in C. It is made using Lex and Yacc. Returns a symbol table, parse tree, annotated syntax tree and intermediate code.
Stars: ✭ 37 (-63.37%)
Mutual labels:  ast, syntax-tree
Nlcst
Natural Language Concrete Syntax Tree format
Stars: ✭ 116 (+14.85%)
Mutual labels:  ast, syntax-tree
Hast
Hypertext Abstract Syntax Tree format
Stars: ✭ 344 (+240.59%)
Mutual labels:  ast, syntax-tree
Metric Parser
📜 AST-based advanced mathematical parser written by Typescript.
Stars: ✭ 26 (-74.26%)
Mutual labels:  ast, syntax-tree
Astexplorer.app
https://astexplorer.net with ES Modules support and Hot Reloading
Stars: ✭ 65 (-35.64%)
Mutual labels:  ast, syntax-tree
Ts Type Info
TypeScript AST and code generator [Deprecated]
Stars: ✭ 90 (-10.89%)
Mutual labels:  ast
Estemplate
Proper (AST-based) JavaScript code templating with source maps support.
Stars: ✭ 95 (-5.94%)
Mutual labels:  ast

astviewer

Graphical User Interface for viewing Python Abstract Syntax Trees.

astviewer screen shot

Installation:

First install PyQt or PySide. Either one is fine, AstViewer automatically detects which Qt bindings are installed. If both bindings are installed it prefers PyQt over PySide (You can force AstViewer to use a certain binding by setting the QT_API environment variable to pyqt5, pyqt4, pyside or pyside2.)

If you are using the Anaconda Python distribution it is recommended to install PyQt as follows:

%> conda install pyqt

or, for PySide use

%> conda install pyside2

If you are not using the Anaconda Python distro, you can install the dependencies with Pip as follows:

%> pip3 install pyqt5

or

%> pip install pyside2

There is no conda recipe for the AstViewer, but you can use Pip to install it even if you use Anaconda. To install it type:

%> pip install astviewer

Usage:

Command line example:

%> pyastviewer myprog.py

Examples to use from within Python:

	>>> from astviewer.main import view
	>>> view(file_name='myprog.py')
	>>> view(source_code = 'a + 3', mode='eval')

Further links:

The Green Tree Snakes documentation on ASTs is available for those who find the Python ast module documentation too brief.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].