Commits

Anonymous committed a7502ff

readme

  • Participants
  • Parent commits 13b0a30

Comments (0)

Files changed (1)

     Primitive Language in Objective Caml
 
 
-BUILD:
+BUILD
+=====
 
-    $ sh compile.sh
+    $ make
 
 
-RUN:
-
-    $ ./prim <filename>
+RUN
+===
+    $ ./primc <filename>
 
  (example)
-    $ ./prim samples/test.prim
+    $ ./primc samples/test.prim
 
 
-BNF:
+BNF
+===
 
-<program> ::= MODULE <ident> ; <vdecl opt> BEGIN <statement list> END <ident> .
+  <program> ::= MODULE <ident> ; <vdecl opt> BEGIN <statement list> END <ident> .
 
-<vdecl> ::= VAR <decl> <decl list>
-<decl> ::= <ident list(',')> : <type> ;
-<type> ::= INT | STRING
+  <vdecl> ::= VAR <decl> <decl list>
+  <decl> ::= <ident list(',')> : <type> ;
+  <type> ::= INT | STRING
 
-<statement> ::= <ident> := <expr>n
+  <statement> ::= <ident> := <expr>n
               | IF <relation> THEN <statement list> <else opt> END
               | WHILE <relation> DO <statement list> END
               | <ident> ( <literal> )
-<else> ::= ELSE <statement list>
-<relation> ::= <expr> <relop> <expr>
-<expr> ::= <term> <(<addop> <term>) list>
-<term> ::= <uop opt> <factor> <(<mulop> <factor>) list>
-<factor> ::= <literal>
+  <else> ::= ELSE <statement list>
+  <relation> ::= <expr> <relop> <expr>
+  <expr> ::= <term> <(<addop> <term>) list>
+  <term> ::= <uop opt> <factor> <(<mulop> <factor>) list>
+  <factor> ::= <literal>
            | ( <expr> )
 
-<literal> ::= <ident>
+  <literal> ::= <ident>
             | <number>
             | <string>
 
-<relop> ::= <> | < | <= | = | > | >=
-<uop>   ::= + | -
-<addop> ::= + | -
-<mulop> ::= * | /
+  <relop> ::= <> | < | <= | = | > | >=
+  <uop>   ::= + | -
+  <addop> ::= + | -
+  <mulop> ::= * | /
 
+
+BUGS REPORT
+===========
+
+	yimai.v @ gmail.com
+
+
+CSNagoya
+========
+
+	http://www.jamboree.jp/cs/
+
+
+REFERENCE
+=========
+
+	[���� ����] ����ѥ������� C#�dzؤ������ȼ��� (���եȥ����������ֺ�)