Recent

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

creaothceann

  • Full Member
  • ***
  • Posts: 117
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: 14364
  • Sensorship about opinions does not belong here.
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 »
    Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

    creaothceann

    • Full Member
    • ***
    • Posts: 117
    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).

     

    TinyPortal © 2005-2018