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 reddit.com/r/ProgrammingLanguages

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Klotho - AWS Cloud-aware infrastructure-from-code toolbox [NEW]
  • InfluxDB - Access the most powerful time series database as a service
  • ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
  • Sonar - Write Clean JavaScript Code. Always.
  • 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

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • 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!).

  • Klotho

    AWS Cloud-aware infrastructure-from-code toolbox [NEW]. Build cloud backends with Infrastructure-from-Code (IfC), a revolutionary technique for generating and updating cloud infrastructure. Try IfC with AWS and Klotho now (Now open-source)

  • 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