Ömer Sinan Ağacan

Results 122 issues of Ömer Sinan Ağacan

Here are rules I'm using to lex Rust decimal, binary, octal, and hexadecimal numbers: ```rust rule DecInt { $dec_digit, '_', $int_suffix | $ => |lexer| { let match_ = lexer.match_();...

feature
design

Currently getting the matched character in a wildcard is quite verbose (and probably also inefficient): ```rust _ => |mut lexer| { let char = lexer.match_().chars().next_back().unwrap(); ... } ``` One easy...

feature

Currently there's no way to fail with lexgen's "lexer error" when an error is detected. We need to specify a user error type, and fail using a value of that...

question
design

In the regex section we use `` syntax for metavariable "regex", but that syntax does not look great in the next section when we show Rust code. For example, we...

documentation

https://github.com/maciejhirsz/logos/blob/master/tests/benches/bench.rs We don't have any runtime perf benchmarks yet, would be good to port these to lexgen and compare.

`Style` doesn't have any static constructors or constants for initializing it.

``` bench: internal error: allocation of 1506632 bytes too large (GHC should have complained at compile-time) (GHC version 8.0.1 for x86_64_unknown_linux) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug ```...

I'm not experienced in native GTK library, so sorry if that question doesn't make sense. I'm trying to run some GUI actions based on events emitted in different threads. None...

I made this change in treeview example in the repo: ``` diff diff --git a/examples/treeview/src/treeview.rs b/examples/treeview/src/treeview.rs index 39bd14f..3be128a 100644 --- a/examples/treeview/src/treeview.rs +++ b/examples/treeview/src/treeview.rs @@ -11,7 +11,11 @@ use rgtk::*; use...

I just found a bug in my app caused by casting GLib/GTK pointer types using `as`. GTK has macros/functions like `G_OBJECT`, `GTK_WIDGET`, `GTK_BOX` etc. for casting and we need to...