Skip to content
#

Language parsing

A grammar describes the syntax of a programming language, and might be defined in Backus-Naur form (BNF). A lexer performs lexical analysis, turning text into tokens. A parser takes tokens and builds a data structure like an abstract syntax tree (AST). The parser is concerned with context: does the sequence of tokens fit the grammar? A compiler is a combined lexer and parser, built for a specific grammar.

Here are 1,666 public repositories matching this topic...

Christilut
Christilut commented Nov 6, 2019

Is your feature request related to a problem? Please describe.
I'm copying text one tab into another to run it with another recipe. But when I change back to the first tab, the text I originally selected is no longer selected. It would be nice if this is remembered because when working with a wall of text, it's near impossible to figure out where I was.

This applies to both to input and th

wilsonzlin
wilsonzlin commented Nov 3, 2019

The ForInStatement and ForOfStatement interfaces can also have VariableDeclaration as the value for the left property, as specified by the spec at https://www.ecma-international.org/ecma-262/10.0/index.html#sec-for-in-and-for-of-statements and demonstrated by running the following code:

esprima.parseScript('for (const a in b) {}');
esprima.parseScript('for (const a of b)
math10
math10 commented Oct 13, 2016

XMLElement.js:4 Uncaught TypeError: Cannot read property 'prototype' of undefined

"dependencies": {
    "@angular/common": "^2.1.0",
    "@angular/compiler": "^2.1.0",
    "@angular/compiler-cli": "^2.1.0",
    "@angular/core": "^2.1.0",
    "@angular/forms": "^2.1.0",
    "@angular/http": "^2.1.0",
    "@angular/platform-browser": "^2.1.0",
    "@angular/platform-browser-dynamic": "^2.1.0",
l4cr0ss
l4cr0ss commented Feb 28, 2020

I did a quick search of the issues, both open and closed, but didn't see something like what I'm proposing.

The problem I am having is that reek is throwing up warnings for scaffolding code that hasn't yet been fleshed out. I've included an example below.

I'd like a mechanism that will let me suppress all warnings for a function in the particular instance that the function is not yet impleme

charlax
charlax commented Mar 25, 2020

Feature Request

It would be great to include API documentation. The Usage docs are great as a walkthrough, but when you want to go fast ("what is the name for the Field parameter for a constant value?"), API docs provide a faster answer.

Another use case: I want to inspect the __fields__ on a model, and had to read the code to get the attribute name I was looking for.

API docs would

Veetaha
Veetaha commented Mar 8, 2020

Tree sitter compiled with emscripten (which I guess is currently distributed via npm) aborts the process in case of any unhandled promise rejections.
This is very weird and not acceptable.
The investigation on this issue was initiated at totally unrealted rust-analyzer repo. It was quite hard-to-debug sin

therealadityashankar
therealadityashankar commented Mar 21, 2020

I'm sorry for raising a whole issue on this, I'd have put it in a chat group but I couldn't find one

Jsmn is a world fastest JSON parser/tokenizer.

isn't grammatically correct

its either

Jsmn is the world's fastest JSON parser/tokenizer.

or

Jsmn is one of the world's fastest JSON parsers/tokenizers.

(this is the description in the github top part)
![githubthingy](https:/

drmcghee
drmcghee commented Mar 30, 2020

In my code I have a multiple line summary (comments) for my main method.

when I run my executable and ask for help myapp.exe --help the summary gets line wrapped.
I would like for each line in my summary to have a new line between.

I have tried every mechanism to make this work to no joy (also looked in the dragonfruit code a little) but couldn't find a quick fix.

 /// <summary>
AccessViolator
AccessViolator commented Feb 24, 2020

Everything in diagrams.css should be scoped to some wrapping css class, because as is it cannot be bundled with the rest of an app's css because of styles like this:

div {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

svg {
    width: 100%;
}

Curre

the-moog
the-moog commented Jan 30, 2020

add a min() and max() property that shortcuts generating a list of events if possible.
If the Python Object model had a __min__() and __max__() this would be easier, but a min and max method is still better.

How it would work:
If the instance has a _dtstart or _until return those values instead of iterating and expanding the entire set of data.

This would be a massive speedup.

gaearon
gaearon commented Jun 9, 2018

Please see this issue: facebook/react#13006.

Children aren't meant to be manually managed in an array. Instead, the idea is that you should call underlying library's appendChild and similar methods in your appendChild.

Declaring classes and keeping track of children in arrays and then calling render kind of goes against that because you're ignoring the valuabl

You can’t perform that action at this time.