Click here to Skip to main content
15,905,679 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.

 
GeneralRe: Eu criei um curso de WPF e XAML na UDEMY e tenho 0 inscritos Pin
OriginalGriff25-Jan-20 19:45
mveOriginalGriff25-Jan-20 19:45 
GeneralRe: Eu criei um curso de WPF e XAML na UDEMY e tenho 0 inscritos Pin
BillWoodruff25-Jan-20 20:28
professionalBillWoodruff25-Jan-20 20:28 
GeneralRe: Eu criei um curso de WPF e XAML na UDEMY e tenho 0 inscritos Pin
RickZeeland25-Jan-20 22:02
mveRickZeeland25-Jan-20 22:02 
GeneralRe: Eu criei um curso de WPF e XAML na UDEMY e tenho 0 inscritos Pin
Johnny J.26-Jan-20 0:24
professionalJohnny J.26-Jan-20 0:24 
GeneralRe: Eu criei um curso de WPF e XAML na UDEMY e tenho 0 inscritos Pin
RickZeeland25-Jan-20 22:20
mveRickZeeland25-Jan-20 22:20 
GeneralRe: Eu criei um curso de WPF e XAML na UDEMY e tenho 0 inscritos Pin
fioresoft26-Jan-20 16:12
fioresoft26-Jan-20 16:12 
GeneralRe: Eu criei um curso de WPF e XAML na UDEMY e tenho 0 inscritos Pin
RickZeeland26-Jan-20 20:08
mveRickZeeland26-Jan-20 20:08 
QuestionI'm at a loss, need some ideas. Pin
honey the codewitch25-Jan-20 11:08
mvahoney the codewitch25-Jan-20 11:08 
So in my Rolex lexer reboot, I'm potentially adding a way to specify lexer rules using eXtensible Backus-Noir Form instead of regex (although you can also use regex)

My parsers already allow for this. But I'm thinking of including this feature in my lexer directly.

This creates a strange problem for me, wherein as soon as I add this feature my lexer documents fit the exact same format as my parser documents.

XBNF format.

So what?

Well, the what is that if you pass the same document to a parser that you pass to the lexer you'll get different results, and you shouldn't. You should get just the terminals rendered by the lexer generator. That way the parser can work with the lexer from the same spec document.

But if i pass one of these documents to my lexer, it will treat all of the elements as terminals! why would it not?

My options are to make a new file format specifically to distinguish between this one and XBNF, or to make Rolex only render parts of the XBNF document - the terminal parts. It's kind of counterintuitive that last bit, but it's the Right(TM) result.

*sigh*

Fortunately with the last option if you only use regex in it, none of the above matters. But if you start using BNF in it, it will get confused as to what's a terminal and what's not, forcing you to mark every terminal declaration with the terminal attribute.

I don't like that.

I might make a command line option to either force the document to be a lexer document, or to force it to be treated as a parser document.

This is confusing even to explain. There has to be a better way.
Real programmers use butterflies

AnswerRe: I'm at a loss, need some ideas. Pin
Eddy Vluggen25-Jan-20 11:18
professionalEddy Vluggen25-Jan-20 11:18 
GeneralRe: I'm at a loss, need some ideas. Pin
honey the codewitch25-Jan-20 11:23
mvahoney the codewitch25-Jan-20 11:23 
GeneralRe: I'm at a loss, need some ideas. Pin
Eddy Vluggen25-Jan-20 11:42
professionalEddy Vluggen25-Jan-20 11:42 
GeneralRe: I'm at a loss, need some ideas. Pin
honey the codewitch25-Jan-20 12:08
mvahoney the codewitch25-Jan-20 12:08 
QuestionRe: I'm at a loss, need some ideas. Pin
Eddy Vluggen25-Jan-20 12:22
professionalEddy Vluggen25-Jan-20 12:22 
GeneralRe: I'm at a loss, need some ideas. Pin
BillWoodruff25-Jan-20 21:53
professionalBillWoodruff25-Jan-20 21:53 
AnswerRe: I'm at a loss, need some ideas. Pin
BillWoodruff25-Jan-20 21:02
professionalBillWoodruff25-Jan-20 21:02 
GeneralRe: I'm at a loss, need some ideas. Pin
honey the codewitch25-Jan-20 21:11
mvahoney the codewitch25-Jan-20 21:11 
GeneralRe: I'm at a loss, need some ideas. Pin
BillWoodruff25-Jan-20 21:26
professionalBillWoodruff25-Jan-20 21:26 
GeneralRe: I'm at a loss, need some ideas. Pin
BillWoodruff25-Jan-20 21:35
professionalBillWoodruff25-Jan-20 21:35 
GeneralRe: I'm at a loss, need some ideas. Pin
honey the codewitch25-Jan-20 21:38
mvahoney the codewitch25-Jan-20 21:38 
GeneralRe: I'm at a loss, need some ideas. Pin
BillWoodruff25-Jan-20 21:40
professionalBillWoodruff25-Jan-20 21:40 
GeneralRe: I'm at a loss, need some ideas. Pin
Greg Utas26-Jan-20 2:39
professionalGreg Utas26-Jan-20 2:39 
GeneralRe: I'm at a loss, need some ideas. Pin
honey the codewitch26-Jan-20 3:07
mvahoney the codewitch26-Jan-20 3:07 
GeneralAny Advice ? Six Questions On Starting A YouTube Channel Pin
C-P-User-325-Jan-20 7:44
C-P-User-325-Jan-20 7:44 
GeneralRe: Any Advice ? Six Questions On Starting A YouTube Channel Pin
PIEBALDconsult25-Jan-20 8:10
mvePIEBALDconsult25-Jan-20 8:10 
GeneralRe: Any Advice ? Six Questions On Starting A YouTube Channel Pin
Eddy Vluggen25-Jan-20 9:11
professionalEddy Vluggen25-Jan-20 9:11 

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.