Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fix: Termination on non unicode system + gitignore redcar tmp file #6

Merged
merged 1 commit into from over 2 years ago

2 participants

Thomas Fritzsche Charlie Somerville
Thomas Fritzsche

Sorry for 2nd pull request. I'm getting a little tired.This is same issue as reported under issue #4 but this time it is in compile.rb .
Minor addition: Additionally I added 1 entry in .gitignore as this helps to ignore redcar editor tmp files.

Charlie Somerville charliesome merged commit 40f1246 into from January 14, 2012
Charlie Somerville charliesome closed this January 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.

Showing 2 changed files with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 1  .gitignore
  2. 4  compile.rb
1  .gitignore
... ...
@@ -1,3 +1,4 @@
  1
+._*
1 2
 *.gem
2 3
 etc/
3 4
 coverage/
4  compile.rb
... ...
@@ -1,7 +1,7 @@
1 1
 $LOAD_PATH << File.expand_path("../lib", __FILE__)
2 2
 require "twostroke"
3  
-
4  
-parser = Twostroke::Parser.new(Twostroke::Lexer.new(File.read ARGV.first))
  3
+file = File.open(ARGV.first, "r:utf-8")
  4
+parser = Twostroke::Parser.new(Twostroke::Lexer.new(file.read))
5 5
 parser.parse
6 6
 
7 7
 compiler = Twostroke::Compiler::TSASM.new parser.statements
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.