Skip to content

Commit

Permalink
Moved package home page from https://github.com/iNamik/lexer.go to ht…
Browse files Browse the repository at this point in the history
…tps://github.com/iNamik/go_lexer

It turns out that Go's clean functionality can be dangerious if you have a non-derived file with same exact name as the containing package folder.  This is currently a problem with the lexer project with Go's clean removing the /lexer.go/lexer.go src file.

To reduce the potential for this problem in the future, I am moving all of my Go projects from '*.go' to 'go_*'

I also updated references to the iNamik go_container project, which has already been renamed on github.
  • Loading branch information
davidpfarrell committed Apr 9, 2012
1 parent 44ecf51 commit 56c0f55
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GOROOT ?= $(shell printf 't:;@echo $$(GOROOT)\n' | gomake -f -)
include $(GOROOT)/src/Make.inc

TARG=github.com/iNamik/lexer.go
TARG=github.com/iNamik/go_lexer

GOFILES=\
impl.go\
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lexer.go
go_lexer
========

**Lexer API in Go**
Expand All @@ -7,7 +7,7 @@ lexer.go
ABOUT
-----

The 'lexer.go' package is an API to help you create hand-written lexers and parsers.
The 'go_lexer' package is an API to help you create hand-written lexers and parsers.

The package was inspired by Rob Pikes' video [Lexical Scanning In Go](http://youtu.be/HxaD_trXwRE) and golang's 'template' package.

Expand Down Expand Up @@ -100,7 +100,7 @@ Below is a sample word count program that uses the lexer API:

import "os"
import "fmt"
import "github.com/iNamik/lexer.go"
import "github.com/iNamik/go_lexer"

// Usage : wordcount <filename>
func usage() {
Expand Down Expand Up @@ -224,22 +224,22 @@ INSTALL

To install the package manually

git clone https://github.com/iNamik/lexer.go
cd lexer.go
git clone https://github.com/iNamik/go_lexer
cd go_lexer
gomake
gomake install

Or you can install the package via goinstall

goinstall github.com/iNamik/lexer.go
goinstall github.com/iNamik/go_lexer


DEPENDENCIES
------------

lexer.go depends on the iNamik container.go queue package:
go_lexer depends on the iNamik go_container queue package:

* https://github.com/iNamik/container.go
* https://github.com/iNamik/go_container


AUTHORS
Expand Down
2 changes: 1 addition & 1 deletion examples/word_count/word_count.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import "os"
import "fmt"
import "github.com/iNamik/lexer.go"
import "github.com/iNamik/go_lexer"

// Usage : wordcount <filename>
func usage() {
Expand Down
2 changes: 1 addition & 1 deletion lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package lexer
import (
"io"
"bufio"
"github.com/iNamik/container.go/queue"
"github.com/iNamik/go_container/queue"
)

// TokenType identifies the type of lex tokens.
Expand Down
2 changes: 1 addition & 1 deletion private.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"bufio"
"utf8"
"github.com/iNamik/container.go/queue"
"github.com/iNamik/go_container/queue"
)

// lexer holds the state of the scanner.
Expand Down

0 comments on commit 56c0f55

Please sign in to comment.