Search results

  1. F

    Feature ASH language server features

    Ok, this fixes the NPEs in the parsePluralConstant patch
  2. F

    Feature ASH language server features

    yeah, first, I should make a method out of the this.currentLine = this.currentLine.nextLine; this.currentIndex = this.currentLine.offset; 's, and have THAT not do anything if we are at the end of file
  3. F

    Feature ASH language server features

    oh, wait, nvm, I see what I forgot; it has nothing to do with parseEscapeSequence
  4. F

    Feature ASH language server features

    I don't-- Doesn't this prevent it? Using your first example: '\ ' is character 0 \ is character 1 the line has a length of 2 we enter parseEscapeSequence with i == 1 since char ch = line.charAt( i ); // Handle escape sequences if ( ch == '\\' )...
  5. F

    Feature ASH language server features

    Well then, I guess we can continue. https://kolmafia.us/threads/ash-language-server-features.26098/post-163315 is waiting for approval https://kolmafia.us/threads/ash-language-server-features.26098/post-163321 is waiting for approval For the next method refactor, I would first like to present...
  6. F

    Feature ASH language server features

    It seems like the test's arguments were modified between them being fetched from ParserTest.data() and ParserTest.testScriptValidity() being called...
  7. F

    Feature ASH language server features

    No, the error message you showed really looked at the Line itself. It was truly supplied a line starting with a question mark.
  8. F

    Feature ASH language server features

    (oh, you guys had already figured that out...)
  9. F

    Feature ASH language server features

    Do you mean something like this: With the first line reading something like v currentLine: Parser$Line@<whatever> "null" (with quotes around the null) If so, it's maybe not an error. The IDE is probably the one not doing the null check; it maybe tries to do String stringValueOfField = "\"" +...
  10. F

    Feature ASH language server features

    @fronobulax could you try with this? I significantly changed the error message, again, to print a variety of information about Byte Order Marks and the Line's first character.
  11. F

    Feature ASH language server features

    The "end of file" Line (or what we marked as such) contains a single Token, with a value of ";" You can see it being assigned on line 4571
  12. F

    Feature ASH language server features

    Is this platform-dependant or something? Because I'm not getting this (also how would it have passed the test for us if that was the case?)
  13. F

    Feature ASH language server features

    More accurately, it seems like the Byte Order Mark was not *recognized*... Which leads to it not being trimmed, which leads to none of the parsing methods finding anything. parseScope then assumed that "finding nothing means we're at the end of the file".
  14. F

    Feature ASH language server features

    So, what I think I'm seeing here, is that the Byte Order Mark was somehow not skipped...
  15. F

    Feature ASH language server features

    While this gets sorted out, here are a variety of small patches: Parser's public static fields "probably" ought to be final Removal of redundant method parsePostCall. Said method was called at the very end of parseCall and parseInvoke. Both parseCall and parseInvoke are (*only*) called by...
  16. F

    Feature ASH language server features

    Hard to test, Clover doesn't even let me run them... Buildfile: C:\Users\Frederic\Desktop\KoLmafia-workspace\kolmafia\build.xml init: svn-version: gitsvn-version: version: [echo] Current revision: 20838M compile-deps: compile: svn-version: gitsvn-version: version: [echo]...
  17. F

    Feature ASH language server features

    And here is the parseString refactor. - that method is now exclusively for string parsing, allowing a lot of typed constant handling to be removed from it. - Since the method is now just for strings, it now has a string character check at the start (', " or `). - The typed constant handling is...
  18. F

    Feature ASH language server features

    I was so tempted to name them "blue_pill.patch" and "red_pill.patch" X3
  19. F

    Feature ASH language server features

    @heeheehee quick bugfix for a bug I found. Remember how you noticed that "you could put line breaks *anywhere*, in plural typed constants"? Well, it seems to also apply to the parsing of the two successive slashes needed to make a comment, i.e. "//"... This means that $booleans[tr/...
Back
Top