ast
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 953 public repositories matching this topic...
Issue
When using postcss v7.0.20 the webpack compilation fails with the following stack trace.
✖ 「wdm」: TypeError: Cannot read property 'value' of undefined
at /Users/username/workspaces/terra/terra-core/9.css:220:3
at new Quoted (/Users/username/workspaces/terra/terra-core/node_modules/postcss-values-parser/lib/nodes/Quoted.js:19:28)
at cloneNode (/Users/username/works
Multiple different Javascript snippets can result in a LineComment node:
// type1
<!-- type2
--> type3From current Esprima's output there's no way to know which one of these 'styles' was used as a comment.
Since this is specific to LineComment nodes, it's possible to split the type of node from 'LineComment' into 3 node types (one for each style). But I assume that wo
The Error is:
yarn global v1.21.0
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred: "C:\Users\...\npm-@babel-parser-7.9.4-68a35e6b0319bbc014465be43828300113f2f2e8-integrity\node_modules\@babel\parser\.yarn-metadata.json: Unexpected token \u0000 in JSON at position 0".
info If you think this is a bug, please open a bug report with the informati
Typing print() in the jscodeshift transformer triggers browser print dialog
To Reproduce
Steps to reproduce the behavior:
- Specify to use jscodeshift
- Type
print()in bottom left corner - See the bug
Expected behavior
Shouldn't do that
Browser (please complete the following information):
- OS: OS X
- Browser Chrome
- Version 78.0.3904.108
**astexplorer
-
Updated
Jul 3, 2020 - JavaScript
Overview of the issue
When I try to include links in the documentation they do not appears as expected.
Operating System, Node.js, npm, compodoc version(s)
node 12.16.1
npm 6.13.4
compodoc 1.1.11 (installed globally)
Angular configuration, a package.json file in the root folder
Compodoc installed globally or locally ?
globally
-
Updated
Jul 8, 2020 - PHP
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?
Make sure these boxes are checked before submitting your issue - thank you!
(If your issue is neither a both bug nor a request, please write in a free style)
- https://esdoc.org/manual/feature.html
- https://esdoc.org/manual/config.html
- https://esdoc.org/manual/tags.html
- https://esdoc.org/manual/api.html
- https://esdoc.org/manual/faq.html
Short summary of your i
Describe the bug
SQL Server supports assigning a value to a variable from a selected expression.
For example:
DECLARE @var INT;
CREATE TABLE tableName (id INT);
SELECT @var = 1;
SELECT @var = id FROM tableName;
To Reproduce
assertSqlCanBeParsedAndDeparsed("SELECT @var = 1");
System
- SQL Server 2017
- JSqlParser 3.1
-
Updated
May 9, 2017 - JavaScript
-
Updated
Jun 27, 2020 - JavaScript
get rewritten into
[
1,
2
]which is not what one would expect rewriting the code. That's a small, innocent literal array. And yet I see no way to make escodegen output such lists as [1, 2]. Could you add it as a default behaviour and an option, please?
-
Updated
Jun 19, 2020 - JavaScript
-
Updated
Oct 29, 2019 - Go
Hi I want to check if the prevoius char is a :. The exact example code I have is this:
Prefix: !
I want basicly to be able to check based on if the previous char is a : the ! should get a string and later reuse the look back logic to check if I am inside an array which is defined like in yaml meaning to make sure the last 2 lines of the following example don't get into the ar
Given input:
if(cond1 || (cond2 && experiments.isToggleEnabled(STALE_FLAG)) {
// do something
}
the output of PiranhaJava is
if(cond1 || (cond2)) {
// do something
}
The additional paranthesis around cond2 should be eliminated.
Is your feature request related to a problem? Please describe.
No MappedTypeNode definition in ts-morph.
No TypeQueryNode definition in ts-morph.
No TypeOperatorNode definition in ts-morph.
Currently the function page just shows the most recent 200 calls of that function, and doesn't allow going further back.
Basically we need to choose between:
class X {
private $foo;
public function __construct(string $foo) {
$this->foo = $foo;
}
public function getFoo(): string {
return $this->foo;
}
}or:
class X {
/**
* @var string
*/
private $foo;
public function __construct(string $foo) {
$this->foo = $foo;
}
public fAs for Display the special operations generated by the compiler #224 discussion, the documentation will improve if we had a section describing the transformation of each featre and his limitations.
In particular for the special operation, to explain that only the operations that are really generated would appear in the transformation. This is due to the fact that the tool s based on the AST.
from the docs in your readme https://github.com/csstree/csstree/blob/master/docs/parsing.md#atrule
atrule
Type: string or null
Default: null
Using for atrulePrelude context to apply atrule specific parse rules.What would the string be and how would it be used to apply specific parse rules?
-
Updated
Jun 21, 2020 - C++
- Wikipedia
- Wikipedia
Prettier supports EditorConfig, but the docs are almost silent about this fact. In particular:
See also https://gi