Click here to Skip to main content
14,740,854 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 20:45
mveOriginalGriff25-Jan-20 20:45 
GeneralRe: Eu criei um curso de WPF e XAML na UDEMY e tenho 0 inscritos Pin
BillWoodruff25-Jan-20 21:28
mveBillWoodruff25-Jan-20 21:28 
GeneralRe: Eu criei um curso de WPF e XAML na UDEMY e tenho 0 inscritos Pin
RickZeeland25-Jan-20 23:02
mveRickZeeland25-Jan-20 23:02 
GeneralRe: Eu criei um curso de WPF e XAML na UDEMY e tenho 0 inscritos Pin
Johnny J.26-Jan-20 1:24
professionalJohnny J.26-Jan-20 1:24 
GeneralRe: Eu criei um curso de WPF e XAML na UDEMY e tenho 0 inscritos Pin
RickZeeland25-Jan-20 23:20
mveRickZeeland25-Jan-20 23:20 
GeneralRe: Eu criei um curso de WPF e XAML na UDEMY e tenho 0 inscritos Pin
fioresoft26-Jan-20 17:12
Memberfioresoft26-Jan-20 17:12 
GeneralRe: Eu criei um curso de WPF e XAML na UDEMY e tenho 0 inscritos Pin
RickZeeland26-Jan-20 21:08
mveRickZeeland26-Jan-20 21:08 
QuestionI'm at a loss, need some ideas. Pin
honey the codewitch25-Jan-20 12:08
mvahoney the codewitch25-Jan-20 12: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 12:18
professionalEddy Vluggen25-Jan-20 12:18 
GeneralRe: I'm at a loss, need some ideas. Pin
honey the codewitch25-Jan-20 12:23
mvahoney the codewitch25-Jan-20 12:23 
GeneralRe: I'm at a loss, need some ideas. Pin
Eddy Vluggen25-Jan-20 12:42
professionalEddy Vluggen25-Jan-20 12:42 
GeneralRe: I'm at a loss, need some ideas. Pin
honey the codewitch25-Jan-20 13:08
mvahoney the codewitch25-Jan-20 13:08 
QuestionRe: I'm at a loss, need some ideas. Pin
Eddy Vluggen25-Jan-20 13:22
professionalEddy Vluggen25-Jan-20 13:22 
GeneralRe: I'm at a loss, need some ideas. Pin
BillWoodruff25-Jan-20 22:53
mveBillWoodruff25-Jan-20 22:53 
AnswerRe: I'm at a loss, need some ideas. Pin
BillWoodruff25-Jan-20 22:02
mveBillWoodruff25-Jan-20 22:02 
GeneralRe: I'm at a loss, need some ideas. Pin
honey the codewitch25-Jan-20 22:11
mvahoney the codewitch25-Jan-20 22:11 
GeneralRe: I'm at a loss, need some ideas. Pin
BillWoodruff25-Jan-20 22:26
mveBillWoodruff25-Jan-20 22:26 
GeneralRe: I'm at a loss, need some ideas. Pin
BillWoodruff25-Jan-20 22:35
mveBillWoodruff25-Jan-20 22:35 
GeneralRe: I'm at a loss, need some ideas. Pin
honey the codewitch25-Jan-20 22:38
mvahoney the codewitch25-Jan-20 22:38 
GeneralRe: I'm at a loss, need some ideas. Pin
BillWoodruff25-Jan-20 22:40
mveBillWoodruff25-Jan-20 22:40 
GeneralRe: I'm at a loss, need some ideas. Pin
Greg Utas26-Jan-20 3:39
mvaGreg Utas26-Jan-20 3:39 
GeneralRe: I'm at a loss, need some ideas. Pin
honey the codewitch26-Jan-20 4:07
mvahoney the codewitch26-Jan-20 4:07 
GeneralAny Advice ? Six Questions On Starting A YouTube Channel Pin
C-P-User-325-Jan-20 8:44
MemberC-P-User-325-Jan-20 8:44 
GeneralRe: Any Advice ? Six Questions On Starting A YouTube Channel Pin
PIEBALDconsult25-Jan-20 9:10
professionalPIEBALDconsult25-Jan-20 9:10 
GeneralRe: Any Advice ? Six Questions On Starting A YouTube Channel Pin
Eddy Vluggen25-Jan-20 10:11
professionalEddy Vluggen25-Jan-20 10: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.