Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81709 / JSCompiler.SyntaxHighlighter / Program.cs
diff options
context:
space:
mode:
Commitaeb0d4f887a0c18c36b59acc7b5df08e62020c50 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-10-11 21:32:48 +0300
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-10-11 21:33:38 +0300
Filesb6abdc6e1810326b587f2a160f39570f1f568f27 /homework/81709/JSCompiler.SyntaxHighlighter/Program.cs
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.tar
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.tar.gz
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.zip
Parent154b7cd30f21af1554ca26986ff1643e28857727 (diff)
Removed old homeworks
1 files changed, 0 insertions, 36 deletions
-rw-r--r--homework/81709/JSCompiler.SyntaxHighlighter/Program.cs36
diff --git a/homework/81709/JSCompiler.SyntaxHighlighter/Program.cs b/homework/81709/JSCompiler.SyntaxHighlighter/Program.cs
deleted file mode 100644
index fd0d539..0000000
--- a/homework/81709/JSCompiler.SyntaxHighlighter/Program.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using JSCompiler.Core;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace JSCompiler.SyntaxHighlighter
-{
- class Program
- {
- static int Main(string[] args)
- {
- if(args.Length < 2)
- {
- Console.WriteLine("Input and output destinations not specified!");
- return 1;
- }
-
- try
- {
- BaseInputStream stream = new BaseInputStream(args[0]);
- Lexer lex = new Lexer(stream);
- List<Token> tokens = lex.Tokenize((line, cause) => Console.Out.WriteLine($"On line {line} error: {cause}"));
- SyntaxHighlighter.GenerateHtml(tokens, args[1]);
- }
- catch(Exception e)
- {
- Console.WriteLine(e.Message);
- return 1;
- }
-
- return 0;
- }
- }
-}