HanzoDev1375
HanzoDev1375
Is there a code sample for that? در تاریخ یکشنبه 26 ژانویه 2025، 22:04 Philip Helger < ***@***.***> نوشت: > To read with line and column, you need to provide...
@phax good code my code ```java void cssrun() { String cssCode = binding.editor.getText().toString(); CascadingStyleSheet sheet = CSSReader.readFromStringReader(cssCode, new CSSReaderSettings().setUseSourceLocation(true)); CSSStyleRule rule = (CSSStyleRule) sheet.getAllStyleRules(); List rl = new ArrayList(); rl.add(rule);...
The problem is here. I don't get any errors from the console. Can you add 2 new test files? One to parse the CSS and get the lines and columns,...
[idelog.txt](https://github.com/user-attachments/files/20638620/idelog.txt) hi @phax I tried to create a colorizer and color separation for commenting, but when formatting the code in the `formatWeb` method, the written comments are deleted. Do you...
[SettingAppActivity.java.txt](https://github.com/user-attachments/files/17799589/SettingAppActivity.java.txt) see @kaby76
> Input is only 898 lines, takes ~90s to parse, result is success. Yes, this is terrible performance. But, unfortunately expected. > > This grammar is a direct implementation of...
> > So this is a problem of grammar? > > Yes. It's a grammar problem, not an "Antlr problem". > > Many of the grammars in this repo can...
> > Is there a solution for treatment? > > Yes, the grammar should be fixed. I am working my way through the grammars and cleaning up ambiguity and fallbacks....
@kaby76 I have a question in my mind, is it possible to make a code formatter with lexer and parser?
> Yes, it can. > > I ported Codebuff to C# but there is the original Java version. See https://scholar.google.com/scholar?hl=en&as_sdt=0%2C22&q=codebuff&btnG= > > Also check out https://github.com/antlr/codebuff > > Basically you...