What parsing techniques do you use to support a good language server?

This page summarizes the projects mentioned and recommended in the original post on /r/ProgrammingLanguages

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • The situation I want to avoid is one which I've encountered in some hobby languages that I've tried, which is that any syntax error anywhere in the file causes the entire file to red squiggly. IMO, this is worse than nothing at all. TypeScript handles this problem very well; you can have multiple syntax errors in different places in the file, and each of them will report errors at a local scope. (I assume this has to do with balancing brackets, because unbalanced parenthesis seem like the easiest way to cause non-local syntax errors.) Problem is, at 9.5k lines of imperative code, trying to read the TypeScript parser hasn't made anything click for me.

  • bangalang

  • I made a toy language awhile back that might help. It's mostly based on the "crafting interpreters" series but more functional (with types). There's a simple language server as well as a debugger. It's all in typescript. Github repo

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • V8

    The official mirror of the V8 Git repository

  • It must be a fairly large echo chamber since it has room for Clang, GCC, V8, OpenJDK, Roslyn, etc. (The Zend parser for PHP seems to use some flavor of YACC, but given PHP, I don't know if that strengthens or weakens my point.)

  • JDK

    JDK main-line development https://openjdk.org/projects/jdk

  • It must be a fairly large echo chamber since it has room for Clang, GCC, V8, OpenJDK, Roslyn, etc. (The Zend parser for PHP seems to use some flavor of YACC, but given PHP, I don't know if that strengthens or weakens my point.)

  • Roslyn

    The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.

  • It must be a fairly large echo chamber since it has room for Clang, GCC, V8, OpenJDK, Roslyn, etc. (The Zend parser for PHP seems to use some flavor of YACC, but given PHP, I don't know if that strengthens or weakens my point.)

  • rust

    Empowering everyone to build reliable and efficient software.

  • OK, here's Rust (written in Rust), Go (written in Go), TypeScript (written in TypeScript), Dart (written in Dart), Julia (written in Scheme!).

  • go

    The Go programming language

  • OK, here's Rust (written in Rust), Go (written in Go), TypeScript (written in TypeScript), Dart (written in Dart), Julia (written in Scheme!).

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • sdk

    The Dart SDK, including the VM, dart2js, core libraries, and more.

  • OK, here's Rust (written in Rust), Go (written in Go), TypeScript (written in TypeScript), Dart (written in Dart), Julia (written in Scheme!).

  • julia

    The Julia Programming Language

  • OK, here's Rust (written in Rust), Go (written in Go), TypeScript (written in TypeScript), Dart (written in Dart), Julia (written in Scheme!).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts