Add GrammarParser class to parse input file

This commit is contained in:
josh committed 2021-05-01 08:22:14 -04:00
1 parent 75a1049040
commit 0cc4516c0e
3 files changed
+26

No files matched your search

+5
View File
@@ -36,6 +36,11 @@ EOF
$stderr.puts "Error: must specify input file"
return 1
end
unless File.readable?(input_file)
$stderr.puts "Error: cannot read #{input_file}"
return 2
end
Imbecile.run(input_file)
end
end
+8
View File
@@ -0,0 +1,8 @@
module Imbecile
class GrammarParser
def initialize(input_file)
end
end
end