spitfire icon indicating copy to clipboard operation
spitfire copied to clipboard

Error tolerant parser for Elixir

Results 10 spitfire issues
Sort by recently updated
recently updated
newest added

I've been thinking more about error tolerance in Elixir parsing and wanted to start a discussion about errors that come from the tokenizer. Currently, the behavior of the tokenizer is...

Hi Mitch! First off, thanks for your work on Spitfire. It's shaping up really well and is already a valuable tool! Second, to hedge a bit, I don't know whether...

## Description There was an instance where I was writing an ExUnit test, and was adding another key into a `@tag`. The parser raised the following exception. ``` [Error] **...

``` ** (FunctionClauseError) no function clause matching in Spitfire.peek_token/1 (spitfire 0.1.0) lib/spitfire.ex:2167: Spitfire.peek_token(%{tokens: [nil | :eot], literal_encoder: #Function, errors: [{[line: 4, column: 13], "missing closing bracket for list"}], current_token: {:fake_closing_bracket,...

## Description Recursive Descent parsers tend to lex the document as they go, rather than all up front. This allows you to know what to do in the case a...

Here's a list of crashes I noticed when trying out Spitfire on elixir_sense parser tests 1. ``` defmodule MyModule do import List end defmodule MyModule do import List ; (__cursor__())...

Fixes crash 3 from https://github.com/elixir-tools/spitfire/issues/48 Fixes https://github.com/elixir-tools/spitfire/issues/26 Supersedes https://github.com/elixir-tools/spitfire/pull/32

Fixes crash 1 from https://github.com/elixir-tools/spitfire/issues/48 I tried to find all the places where `:eol` token was handled and by disabling that code discover tests that were affected. In a few...