Tag 'algorithms':


Check Braces
Aug 3rd, 2015

algorithms brackets parsing
Annual hours saved: 1

The other day I needed a quick way to check a file for matching braces (and brackets and parentheses). I couldn’t find an easy way to do this on the command-line, so I wrote this simple Java class, and wrapped it into a .jar:

https://gist.github.com/pieman72/3e17b127849d3454f24e

It correctly identifies mismatched, unexpected, and improperly nested brackets (e.g. { ( } )). It is however, completely language agnostic, and will not notice if brackets are in a comment block or string, or are otherwise escaped. It just does a naive count.

2014 Algorithm Completion Paper
Dec 26th, 2014

algorithms automatic code completion paper software engineering

The following is a transcript of a paper I wrote in late 2014 for Professor Aho’s “Advanced Topics in Programming Languages and Compilers” seminar at Columbia University. A PDF version of the paper is available here. [Read More]

Your E-Sheep:

( change )

Recent Posts:

10/14 - ADHOC Changelog
8/19 - And now… random puppies!
8/3 - Check Braces
7/23 - Make Limits Java Heap Size on 32-bit Linux
7/21 - Terminal Color Support in Makefiles

Search
Top Tags:

aaaaargh! algorithms automatic awesome colors config development environment documentation frustrating java linux make parsing project management random syntax-highlighting terminal types

Random Quote:

A-hyuck!
Goofy

Powered By:
License:

2017 - Creative Commons 3.0