Oh god! I really really need to try this!

Now if only i know how to make the brown rice with potatoes and the salad of spliced cucumber…

I'm back

Published at Mon 09, 2007 11:27 | Permalink Permalink | Comments Comments (0) | Trackbacks Trackbacks (0)

Now running Typo :)

This weekend I was trying to implement a simple PHP parser for my WebAppViewer project (more on that later).

Since the project is written in Java, we decided to use ANTLR2 for parsing purposes. After messing around with it (and being used to LR parsers), I went nuts because every single line of grammar I wrote had conflicts.

Just before going completely crazy, I decided to give ANTLR3 a try.

The real difference is that ANTLR2 is a LL(k) parser. On the other hand, ANTLR3 is a LL(*) parser. This means that the parser may do infinite LookAheads to do the disambiguation, and therefore, my grammar started working :)

So for you that don’t like LL grammars, dump ANTLR2, and adopt ANTLR3.

More info on ANTLR3 here

krani1@0x82:~/router/logs/archive$ ls
auth.log.1 crond.1 errors.log.1 iptables.log.1 mail.log.1 store.log.2 user.log.2
auth.log.2 crond.2 errors.log.2 iptables.log.2 messages.log.1 syslog.log.1
cache.log.1 daemon.log.1 everything.log.1 kernel.log.1 messages.log.2 syslog.log.2
cache.log.2 daemon.log.2 everything.log.2 kernel.log.2 store.log.1 user.log.1
krani1@0x82:~/router/logs/archive$ ls | cut -f1 -d'.' | head
auth
auth
cache
cache
crond
crond
daemon
daemon
errors
errors
krani1@0x82:~/router/logs/archive$ ls | cut -f1 -d'.' | sort | uniq | head
auth
auth
cache
crond
daemon
errors
everything
iptables
kernel
mail

Can someone please explain me the double auth??

UPDATE: Thank you Alberto for the tip on the comment. I owe you a launch…

Last Thursday I presented a project from the last year of my graduation in Computer Science and System Engineering. The project was to create a DSL to parallelize a NPL process and make the most of the cluster SeARCH we have at our campus.

The project was a success, and the tool is already being used in production. Since at least two people asked me again for the slides of the presentation, I decided to put them here to the world.

Sorry if you don’t understand Portuguese. Just look at the pictures :) Later this month I plan to publish a English article with full coverage of the tool.

The presentation can be found here

About

photo of Ruben Fonseca

My name is Ruben Fonseca. I'm a Computer Science and Systems Engineer from Portugal that loves FLOSS.

I'm currently an Open Source Consultant at Lisbon, Portugal. This blog is about my daily geek life.

You can contact me anytime at or via LinkedIn:

View Ruben Fonseca's profile on LinkedIn

Feeds

Music