mirror of
https://github.com/usatiuk/nand2tetris.git
synced 2025-10-28 16:17:48 +01:00
19 lines
760 B
C#
19 lines
760 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace JackAnalyzer
|
|
{
|
|
class Constants
|
|
{
|
|
public const string inExt = ".jack";
|
|
|
|
public static readonly char[] symbols = { '{', '}', '(', ')', '[', ']', '.', ',', ';', '+', '-', '*', '/', '&', '|', '<', '>', '=', '~' };
|
|
public static readonly string[] keywords = { "class", "constructor", "function", "method", "field", "static", "var", "int", "char", "boolean", "void", "true", "false", "null", "this", "let", "do", "if", "else", "while", "return" };
|
|
public static readonly char[] op = { '+', '-', '*', '/', '&', '|', '<', '>', '=' };
|
|
public static readonly char[] unaryOp = { '-', '~' };
|
|
|
|
public const int indentLevel = 2;
|
|
}
|
|
}
|