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 2,283 public repositories matching this topic...
-
Updated
Oct 26, 2021 - Java
-
Updated
Oct 27, 2021 - Python
-
Updated
Oct 25, 2021 - Rust
-
Updated
Sep 9, 2021 - TypeScript
-
Updated
Sep 16, 2021 - CoffeeScript
-
Updated
Sep 29, 2021 - Swift
-
Updated
Oct 4, 2021 - Ruby
-
Updated
Aug 28, 2021 - JavaScript
-
Updated
Oct 22, 2021 - C
-
Updated
Oct 14, 2021 - C
Seeing PGO: UNKNOWN is not implemented yet!
printed out when parsing the following assembly
global main
extern GetStdHandle
extern WriteFile
section .text
main:
mov rcx, 0fffffff5h
call GetStdHandle
mov rcx, rax
mov rdx, NtlpBuffer
mov r8, [NtnNBytesToWrite]
mov r9, NtlpNBytesWritten
sub rsp, 40
mov dword [rs
Help - line wrap
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>
-
Updated
Aug 9, 2021 - C#
-
Updated
Oct 22, 2021 - JavaScript
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
-
Updated
Aug 22, 2021 - HTML
Justification
It's much more common to see the code below:
Public Sub Foo()
Dim i, j, k As Long
'code
End Sub
than it is to see:
Public Sub Foo()
Dim i As Long, j As Long, k As Long
'code
End Sub
This is a very common pitfall. Example code in a MultipleDeclarations inspect
-
Updated
Oct 27, 2021 - C++
- 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