LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Playing with parsing

Posted 01-02-2013 at 07:46 PM by rainbowsally

Playing with parsing

Today's features:
  • Creating an extensible mid-level parser that makes sense in C.
  • Looking at BNF-like syntax and C syntax similarities.
  • Tossing flex as far as we can throw it. While its still burning.

The file set here isn't 'finalized' in any way but it's been stable for a few days. These examples are therefor not about THIS set of functions but about parsing in general, although this file set will very likely be part of the mc2 parsing system...
Member
Posted in Uncategorized
Views 457 Comments 0 rainbowsally is offline
Old

New-Make ready for hyperjump and KDE Menu's How-To

Posted 12-29-2012 at 10:35 PM by rainbowsally
Updated 09-04-2013 at 09:04 PM by rainbowsally

New-Make ready for hyperjump and KDE Menu's How-To

This is somewhat advanced stuff but.. maybe not. It might also appeal to anyone who has a little talent for tinkering who needs to set up a KDE menu for an application that doesn't have one. See warning below, however.

Today's features
  • Last of the first generation new-make installer/uninstallers (probably).
  • Usage example that installs and uninstalls a dummy application and icons into the KDE menus.

1.0.17[*]...
Member
Posted in Uncategorized
Views 467 Comments 0 rainbowsally is offline
Old

New-Make And MC2, Meet MPG123 (terminal app to play MP3 and other file formats)

Posted 12-25-2012 at 08:11 PM by rainbowsally
Updated 09-04-2013 at 09:04 PM by rainbowsally (wrong acronym for alsa)

After that last rant about screwy software, I found some GREAT software. mpg123 is outstanding.

Today's Features
  • Me eating my words, even about assembler coding. ;-)

Famous last words galore! I even have to eat my words about asm. In fact this app is so cool I had to add the ability to compile asm and C sources in the same directory to the mc2 code.

MPG123 (sandboxed relocatable binary installation OR compile from code, modify, experiment, etc.) is linked...
Member
Posted in Uncategorized
Views 604 Comments 0 rainbowsally is offline
Old

Hashing for ID generation (hash32_enum algorithm and ASM)

Posted 12-24-2012 at 10:45 AM by rainbowsally

You're not going to get fool-proof uniqueness from a 32 bit hash, but this one gets pretty close.

[cont'd from previous blog entry where the C/C++ version can be seen (and tested). http://www.linuxquestions.org/questi...-lists-35223/]

If you're curious about what the hash32_enum thing in the previous blog entry would look like in assembler, this is the output using the --save-temps gcc flag.

Code:
;
...
Member
Posted in Uncategorized
Views 335 Comments 0 rainbowsally is offline
Old

STL Template Experiment (Lists)

Posted 12-24-2012 at 10:24 AM by rainbowsally
Updated 12-24-2012 at 10:46 AM by rainbowsally (added link)

We've resurrected some dead code that was pretty ugly but the only worse MESS (officially sanctioned, no less) than STL that we've ever seen is the spaghetti in lex/flex output. -- The Computer Mad Science Dept.

So...

Now what?

Well...

...what would ANY good Computer Mad Scientist do in a situation like this?

Today's features are
  • Creating lists using the std::list STL template.
  • Identifying the critical 'operators'
...
Member
Posted in Uncategorized
Views 753 Comments 1 rainbowsally is offline

  



All times are GMT -5. The time now is 01:37 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration