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,620 public repositories matching this topic...
- I am not submitting a question on how to use ANTLR; instead, go to antlr4-discussion google group or ask at stackoverflow
- I have done a search of the existing issues to make sure I'm not sending in a duplicate
I am working to develop a library for the R programming langua
A link in Chapter 2 of the docs points to Chapter 2 rather than Chapter 3, as intended.
Search for "Chapter 3. Lexical Analysis (Tokenization)" on this page: https://esprima.readthedocs.io/en/latest/syntactic-analysis.html
PR incoming
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",
func commonInit() {
self.title = "Choose your country"
public override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
if isFiltering {
return nil
} else if section == 0, hasCurrent {
return "Current"
} else if section == 0, !hasCurrent, hasCommon {
return "C
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
The spec in https://github.com/estree/estree/blob/master/es2020.md states
bigint property is the string representation of the BigInt value. It doesn't include the suffix n.
Should this represent the source text or a normalized notation?
In other words; is the AST for 1048575n equivalent to that of 0xfffffn or not due to the .bigint field?
Document the API
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
I recently started playing around with tree-sitter. I've found it a pleasure to get started with, the documentation is easy to follow and I really like the integrated test system. Thank you!
One place where I found the documentation to be a bit lacking was when I tried to use some more advanced regex features (in particular Unicode property escapes like \p{Ll}). It's hard to figure out what t
Its calling ohm.grammars which appears to be undefined. I believe it should be ohm.grammar. Is this example just out of date with the most recent version or whats going on?
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)
 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>
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.
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
-
Updated
Feb 9, 2020 - HTML
Justification
The term Introduce Parameter has caused enough confusion that there have been at least 2 chat discussions about what it really means. The most recent started here and carried on for a good 10 minutes or so.
Description
The term was borrowed from R#, so those who use it there are quite familiar with
- Wikipedia
- Wikipedia
Is your feature request related to a problem? Please describe.
When working with a big piece of text, I sometimes scroll down and copy some text into another tab. When switching back to the first tab, both the input and the output pane is back on top. So I don't know where I was working just now.
Describe the solution you'd like
After tab switching, scroll position should be remembere