Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions compiler/Constansts/Constants.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace compiler.Constansts
{
public static class Constants
{
public static class Paths
{
public const string In = @"../../java/para.me";
}
}
}
4 changes: 2 additions & 2 deletions console/Program.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
using System;
using System.IO;
using compiler;
using compiler.Constansts;

namespace console
{
class Program
{
static string IN_FILE_PATH = "../../java/para.me";
static Syntactic syntactic = new Syntactic();
static Semantic semantic = new Semantic();

static void Main(string[] args)
{
var stream = semantic.Run(File.Open(IN_FILE_PATH, FileMode.Open));
var stream = semantic.Run(File.Open(Constants.Paths.In, FileMode.Open));
var streamReader = new StreamReader(stream);

Console.WriteLine(streamReader.ReadToEnd());
Expand Down