Click here to Skip to main content
14,459,186 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: Happy turkey day, and happy coding Pin
honey the codewitch28-Nov-19 20:34
mvahoney the codewitch28-Nov-19 20:34 
GeneralRe: Happy turkey day, and happy coding Pin
Tim Deveaux28-Nov-19 20:41
MemberTim Deveaux28-Nov-19 20:41 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch28-Nov-19 20:45
mvahoney the codewitch28-Nov-19 20:45 
GeneralRe: Happy turkey day, and happy coding Pin
Super Lloyd28-Nov-19 21:41
MemberSuper Lloyd28-Nov-19 21:41 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch28-Nov-19 21:49
mvahoney the codewitch28-Nov-19 21:49 
GeneralRe: Happy turkey day, and happy coding Pin
Super Lloyd28-Nov-19 21:55
MemberSuper Lloyd28-Nov-19 21:55 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch28-Nov-19 21:56
mvahoney the codewitch28-Nov-19 21:56 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch28-Nov-19 22:01
mvahoney the codewitch28-Nov-19 22:01 
Adding, so you know what text templating is. You know you can use it to mess with generating any type of file.

All I've done is made a subset of C# parseable into the CodeDom.

So you do like

// create a code dom object from text
CodeExpression expr = Slang.ParseExpression("\"HelloWorld\".ToString()\"");
// parses the string "HelloWorld".ToString() into a code dom tree. Results in a method invoke (ToString) wrapped around a primitive (string) expression
//also
CodeCompileUnit ccu = Slang.ParseCompileUnit(myEntireSourceCodeFileAsAString);
// loads a whole file into the code dom.
// and a lot more stuff there too. You can parse every aspect of the codedom.

The tricky thing is I have to visit the tree afterward to "fix it up"
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: Happy turkey day, and happy coding Pin
Super Lloyd29-Nov-19 0:47
MemberSuper Lloyd29-Nov-19 0:47 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch29-Nov-19 5:02
mvahoney the codewitch29-Nov-19 5:02 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch29-Nov-19 5:09
mvahoney the codewitch29-Nov-19 5:09 
GeneralRe: Happy turkey day, and happy coding Pin
Super Lloyd29-Nov-19 13:01
MemberSuper Lloyd29-Nov-19 13:01 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch29-Nov-19 13:37
mvahoney the codewitch29-Nov-19 13:37 
GeneralRe: Happy turkey day, and happy coding Pin
Eddy Vluggen28-Nov-19 22:58
professionalEddy Vluggen28-Nov-19 22:58 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch28-Nov-19 23:00
mvahoney the codewitch28-Nov-19 23:00 
GeneralRe: Happy turkey day, and happy coding Pin
Eddy Vluggen28-Nov-19 23:08
professionalEddy Vluggen28-Nov-19 23:08 
GeneralRe: Happy turkey day, and happy coding Pin
OriginalGriff29-Nov-19 2:43
communityengineerOriginalGriff29-Nov-19 2:43 
GeneralRe: Happy turkey day, and happy coding Pin
Eddy Vluggen29-Nov-19 3:27
professionalEddy Vluggen29-Nov-19 3:27 
GeneralRe: Happy turkey day, and happy coding Pin
Richard Deeming29-Nov-19 1:47
communityengineerRichard Deeming29-Nov-19 1:47 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch29-Nov-19 4:56
mvahoney the codewitch29-Nov-19 4:56 
GeneralRe: Happy turkey day, and happy coding Pin
Richard Deeming29-Nov-19 5:04
communityengineerRichard Deeming29-Nov-19 5:04 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch29-Nov-19 5:08
mvahoney the codewitch29-Nov-19 5:08 
GeneralMini CCCs 151 Pin
Tim Deveaux28-Nov-19 18:19
MemberTim Deveaux28-Nov-19 18:19 
GeneralRe: Mini CCCs 151 Pin
digimanus29-Nov-19 1:04
Memberdigimanus29-Nov-19 1:04 
GeneralRe: Mini CCCs 151 Pin
Bassam Abdul-Baki5-Dec-19 6:55
professionalBassam Abdul-Baki5-Dec-19 6:55 

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.