GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    clarity flowers (clarity@xoxo.zone)'s status on Saturday, 11-May-2024 05:41:40 JST clarity flowers clarity flowers

    I built a language server for my forth-like that supports semantic highlighting.

    It can distinguish between immediate (comptime) words, normal words, assembly words, and numbers, and immediate words can hack into the token parsing to signal different semantic values.

    For example, here I define a new immediate word “\”, which parses until the end of the line using the magic number “3” to mark the parsed text as a comment, and then discards the parsed result.

    In conversation Saturday, 11-May-2024 05:41:40 JST from xoxo.zone permalink

    Attachments


    1. https://xoxo-media.sfo2.cdn.digitaloceanspaces.com/media_attachments/files/112/418/730/109/637/300/original/f4ad1a6ecd970d83.png
    • Embed this notice
      clarity flowers (clarity@xoxo.zone)'s status on Saturday, 11-May-2024 05:47:52 JST clarity flowers clarity flowers
      in reply to

      the language server protocol is frustrating to build against for a number of reasons (json is a bitch, tons of overhead just to get what amounts of a functional handshake with the server, a very Microsoft™️ insistence on UTF-16 for column positions) but it feels sooooo worth it to have this in a forthlike language where regex-based highlighting is pretty much useless.

      In conversation Saturday, 11-May-2024 05:47:52 JST permalink
    • Embed this notice
      clarity flowers (clarity@xoxo.zone)'s status on Saturday, 11-May-2024 06:41:51 JST clarity flowers clarity flowers
      in reply to
      • paul

      @paul oh shoot right, you're the second person who has asked. Lemme throw it up

      In conversation Saturday, 11-May-2024 06:41:51 JST permalink
    • Embed this notice
      paul (paul@post.lurk.org)'s status on Saturday, 11-May-2024 06:41:53 JST paul paul
      in reply to

      @clarity any public repo? I'd love to follow along!

      In conversation Saturday, 11-May-2024 06:41:53 JST permalink
    • Embed this notice
      clarity flowers (clarity@xoxo.zone)'s status on Saturday, 11-May-2024 08:42:21 JST clarity flowers clarity flowers
      in reply to
      • paul

      @paul https://git.sr.ht/~clarity/swordlang

      In conversation Saturday, 11-May-2024 08:42:21 JST permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        ~clarity/swordlang - A concatenative language for m1 macbooks - sourcehut git

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.