Click here to Skip to main content
15,170,789 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralLooking for EBNF for Javascript Pin
Richard Andrew x6428-Aug-21 7:05
professionalRichard Andrew x6428-Aug-21 7:05 
GeneralRe: Looking for EBNF for Javascript Pin
User 1530175228-Aug-21 7:24
professionalUser 1530175228-Aug-21 7:24 
GeneralRe: Looking for EBNF for Javascript Pin
honey the codewitch28-Aug-21 7:34
mvahoney the codewitch28-Aug-21 7:34 
GeneralRe: Looking for EBNF for Javascript Pin
User 1530175228-Aug-21 7:42
professionalUser 1530175228-Aug-21 7:42 
GeneralRe: Looking for EBNF for Javascript Pin
Richard Andrew x6428-Aug-21 8:35
professionalRichard Andrew x6428-Aug-21 8:35 
GeneralRe: Looking for EBNF for Javascript Pin
honey the codewitch28-Aug-21 8:48
mvahoney the codewitch28-Aug-21 8:48 
GeneralRe: Looking for EBNF for Javascript Pin
Richard Andrew x6428-Aug-21 10:24
professionalRichard Andrew x6428-Aug-21 10:24 
GeneralRe: Looking for EBNF for Javascript Pin
honey the codewitch28-Aug-21 11:46
mvahoney the codewitch28-Aug-21 11:46 
Forgive me, but a grammar isn't the best way to approach that.

Syntax highlighting is usually done these days in pro systems using a combination of regular expressions and anchors.

Minification is done even more easily, simply by tossing out whitespace around most tokens and skipping strings. You barely need to lex.

A grammar is going to make it slow, hard to debug, and a lot harder to code. Just my $0.02. Been to this rodeo a few times.
Real programmers use butterflies

GeneralRe: Looking for EBNF for Javascript Pin
Richard Andrew x6428-Aug-21 11:54
professionalRichard Andrew x6428-Aug-21 11:54 
GeneralRe: Looking for EBNF for Javascript Pin
honey the codewitch28-Aug-21 12:23
mvahoney the codewitch28-Aug-21 12:23 
GeneralRe: Looking for EBNF for Javascript Pin
Gary R. Wheeler28-Aug-21 9:05
MemberGary R. Wheeler28-Aug-21 9:05 
GeneralRe: Looking for EBNF for Javascript Pin
Richard Andrew x6428-Aug-21 10:27
professionalRichard Andrew x6428-Aug-21 10:27 
Generalto all suffering these days ... at home, in Kabul, or wherever and for whatever Pin
User 1530175228-Aug-21 6:37
professionalUser 1530175228-Aug-21 6:37 
GeneralRe: to all suffering these days ... at home, in Kabul, or wherever and for whatever Pin
User 1530175228-Aug-21 7:09
professionalUser 1530175228-Aug-21 7:09 
GeneralRe: to all suffering these days ... at home, in Kabul, or wherever and for whatever Pin
Nelek28-Aug-21 23:47
protectorNelek28-Aug-21 23:47 
GeneralRe: to all suffering these days ... at home, in Kabul, or wherever and for whatever Pin
User 1530175228-Aug-21 7:39
professionalUser 1530175228-Aug-21 7:39 
GeneralRe: to all suffering these days ... at home, in Kabul, or wherever and for whatever Pin
dandy7231-Aug-21 10:13
Memberdandy7231-Aug-21 10:13 
JokeFound a chickpea senselessly smashed into a pulp... PinPopular
Sander Rossel28-Aug-21 3:36
professionalSander Rossel28-Aug-21 3:36 
GeneralRe: Found a chickpea senselessly smashed into a pulp... Pin
Mike Hankey28-Aug-21 4:19
professionalMike Hankey28-Aug-21 4:19 
GeneralRe: Found a chickpea senselessly smashed into a pulp... Pin
OriginalGriff28-Aug-21 4:51
mveOriginalGriff28-Aug-21 4:51 
GeneralRe: Found a chickpea senselessly smashed into a pulp... Pin
englebart28-Aug-21 5:21
professionalenglebart28-Aug-21 5:21 
GeneralRe: Found a chickpea senselessly smashed into a pulp... Pin
RickZeeland28-Aug-21 7:24
mveRickZeeland28-Aug-21 7:24 
NewsGood news for physically inactive, coffee drinking developers! Pin
Ravi Bhavnani27-Aug-21 16:09
professionalRavi Bhavnani27-Aug-21 16:09 
GeneralRe: Good news for physically inactive, coffee drinking developers! Pin
Ron Anders27-Aug-21 18:10
MemberRon Anders27-Aug-21 18:10 
GeneralRe: Good news for physically inactive, coffee drinking developers! Pin
Richard Andrew x6427-Aug-21 18:31
professionalRichard Andrew x6427-Aug-21 18:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.