Recent

Author Topic: fixing godbolt.org  (Read 332 times)

creaothceann

  • Full Member
  • ***
  • Posts: 109
fixing godbolt.org
« on: April 14, 2019, 05:14:05 pm »
By going to https://godbolt.org you can enter your code and quickly see the assembler code, or even the disassembled binary code. Unfortunately the site's support for the Pascal language is a bit lacking...
  • Issue 1352 is about syntax highlighting being applied even to comments. User partouf points to this file and asks for suggestions.
    Unfortunately I'm not familiar with the JS code to fix it. Maybe somebody else has an idea?
  • While we're there, the list of keywords seems a bit incomplete.

Thaddy

  • Hero Member
  • *****
  • Posts: 8163
Re: fixing godbolt.org
« Reply #1 on: April 14, 2019, 05:28:48 pm »
    • While we're there, the list of keywords seems a bit incomplete.
    Actually it is quite complete. There are much less reserved words than most people think.E.g. not even true and false or inc and dec are reserved words. Can you give examples? (hint: try to override them first..)[/list]

    An example that is missing is operator, though.
    « Last Edit: April 14, 2019, 05:34:43 pm by Thaddy »
    Read the manuals and if you are a professional get a proper education in computer science. Makes the forum a lot cleaner.

    creaothceann

    • Full Member
    • ***
    • Posts: 109
    Re: fixing godbolt.org
    « Reply #2 on: April 14, 2019, 10:28:06 pm »
    They may not be reserved words, but as keywords they should be able to be displayed in a different color/font (at least in a simple editor that doesn't do advanced parsing).