goki / pi Goto Github PK
View Code? Open in Web Editor NEWinteractive parsing in GoKi / GoGi framework -- makes parsing fun again!
License: BSD 3-Clause "New" or "Revised" License
interactive parsing in GoKi / GoGi framework -- makes parsing fun again!
License: BSD 3-Clause "New" or "Revised" License
specifically kt.SetProcessed
if you use new prev / next panel shortcuts for moving between tree and edit, and then go back to the tree, you lose the selection in the tree..
really for gi treeview but putting here b/c this is where it shows up
If I have
foo := pf.Editor (where Editor is of type EditorPrefs)
then
foo.
should complete but even though it is found the type is not set
for example
func (sv SomeVar) SomeFunc() {
foo := 45
foo.
"SomeFunc" will be in the completion
because font.go imports font files with massive raw font data, which parser seems to fail badly on -- include some safety fallback or something or fix the parsing.
"golang.org/x/image/font/gofont/gobold"
"golang.org/x/image/font/gofont/gobolditalic"
"golang.org/x/image/font/gofont/goitalic"
"golang.org/x/image/font/gofont/gomedium"
"golang.org/x/image/font/gofont/gomediumitalic"
"golang.org/x/image/font/gofont/gomono"
"golang.org/x/image/font/gofont/gomonobold"
"golang.org/x/image/font/gofont/gomonobolditalic"
"golang.org/x/image/font/gofont/gomonoitalic"
"golang.org/x/image/font/gofont/goregular"
"golang.org/x/image/font/gofont/gosmallcaps"
"golang.org/x/image/font/gofont/gosmallcapsitalic"
for certain rule groups with lots of children and generally highly recursive, e.g., Expr, you could add a flag that says "create a map of all the tokens in this expr" and then pass that map down whenever one is encountered -- first pass on matching tokens is then to just check the map and bail immediately.
actually this is simple enough that I'll just do it now..
Params: NoMatch 2 token: +1:PunctGpRParen tok: 63:3")" scope: {63:3 65:1} ast: /Ast/File/FuncDecl
) {| |}
Test:
func main() {
}
Params: '(' ParamsList ')'
correct is ?ParamsList but we should get a better error msg and unclear why it is nomatching on the ) instead of correctly flagging the ParamsList as not matching
It doesn't really make sense to lock all of the functionality behind a full text editor, so it might make sense to have a standalone piview repository instead.
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.