17 Commits (main)
 

Author SHA1 Message Date
anna b0feea938a
derive: another refactor, support generics
The two derive macros share common code now.
Furthermore, components derived from one of these
macros may use arbitrary generics.  Finally, the
uwui crate name (as in, crate or ::uwui) is being
resolved dynamically.
7 months ago
anna e79902e911
major refactor, part 2
We've reached the point where it kind of works,
albeit only with limited features: The template!
macro has the backend type parameter hardcoded to
TargetBackend as i still can't get it to infer the
type.  I'll probably remove the generic backend
parameter, though, because (1) it's annoying to
have to write everywhere and (2) it is of little
to no use in real applications (you do not create
views targeting the, say, ncurses backend when
compiling against GTK).
7 months ago
anna c0765b7dd0
[broken] major refactor, part 1
This commit introduces the first theoretical
concept for how custom components could work in
this framework, in combination with derive macros
for native and custom components.  The latter
still don't work because rustc can't infer the
Backend type parameter for custom components for
some reason.  I'm only committing this because
the diff is large enough as it is and i thought
it's a pretty good milestone for documenting the
development of this framework.  Furthermore, i'm
experiencing critical levels of being an eepy
little girl,
7 months ago
anna 3173e99797
dsl: support unnamed parameter lists
i stll don't really know my way around syn and
i'm probably using it wrong.  but then again,
this entire project is kind of an abomination
that shouldn't be used by anyone.
7 months ago
anna 9c060164ae
dsl: switch to syn 7 months ago
anna 183f6af976
refactor NewView and NewViewGroup 12 months ago
anna c5deef15e1
add formal grammar for DSL 12 months ago
anna 2493979787
implement parsing for event listeners
The event system doesn't exist yet, but the DSL
macro is capable of parsing event listeners now.
12 months ago
anna 7b35ba0c50
improve macro hygiene
- don't rely on .into() resolving to Into anymore
- use prefixed idents for local variables
- emit an error for idents prefixed with __uwui
12 months ago
anna 213693b816
implement DSL transpiler 1 year ago
anna 3f4ef51c5d
add more test parameters (and a button) 1 year ago
anna d9ff097f5a
add some basic components 1 year ago
anna fdcbd3e8f5
refactor constructors to own trait 1 year ago
anna 35db908fcd
add template macro crate and parser 1 year ago
anna b3a8f18e74
add base definitions for views 1 year ago
anna 2da093558a
add base definitions for backends 1 year ago
anna dc81b72bb4
initial commit uwu 1 year ago