pascalh / astview Goto Github PK
View Code? Open in Web Editor NEWAstview is a graphical viewer for abstract syntax trees
License: Other
Astview is a graphical viewer for abstract syntax trees
License: Other
Currently the AstState
contains three fields for internal program state, gtk gui types and program options. The gtk types don't really belong here, since they are an implementation detail for the gtk-implementation.
Task: Remove the gtk types from this type and make them accessible via a Reader
monad. This will most probably lead to a larger refactoring.
(astview:65364): Gtk-CRITICAL **: gtk_accel_group_connect_by_path: assertion '_gtk_accel_path_is_valid (accel_path)' failed
(astview:65364): Gtk-CRITICAL **: gtk_menu_item_set_accel_path: assertion 'accel_path == NULL || (accel_path[0] == '<' && strchr (accel_path, '/'))' failed
(astview:65364): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
Please let me know if you need more info on the problem.
Since reparsing is manually binded to ctrl+p, the keyboard shortcut is not displayed in the respective menu item, although it should be shown there.
bnfc-meta provides an easy way of defining parsers. Unfortunately it doesn't provide support for source locations (yet). Hence, this task is only about proving an example parser on how to use bnfc with astview. Probably just use the javalette example language.
For now it might make sense to just ignore the syntax highlighting for the generated language (and maybe add it later on in a separate task).
To update the dependencies #17 (gtk doesn't seem to be supported much) and improve decoupling of program state and gtk #11, I decided to give a rewrite of astview using gi-gtk-declarative a try.
I am working on the Haskell Refactorer at https://github.com/alanz/HaRe, and would like to have a way to examine the AST (RenamedSource) and token stream, while working on it.
I made a basic attempt at https://github.com/alanz/HaRe/tree/ghc-api/hareview but got stuck on versions of glade/gtk etc.
Would this be possible without too much effort now that you seem to have come back to this again?
Regards
Alan
Test (for each supported language) whether
As haskell-src-exts
will be discontinued, astview needs to change to a different lib. ghc-lib-parser seems to be its replacement
Master builds against lts-7.24 which is already a year old. Bump dependencies to build with a newer LTS version (opt for LTS 12.5)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.