Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /trunk/src/parser/diderot.grm
ViewVC logotype

View of /trunk/src/parser/diderot.grm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14 - (download) (annotate)
Tue Jan 12 23:03:22 2010 UTC (10 years, 8 months ago) by jhr
File size: 569 byte(s)
  Starting to work on parser for Diderot
(* diderot.grm
 *
 * COPYRIGHT (c) 2010 The Diderot Project (http://diderot.cs.uchicago.edu)
 * All rights reserved.
 *)

%name Diderot;

%tokens
  : KW_actor		("actor")
  | KW_field		("field")
  | KW_image		("image")
  | OP_plus		("+")
  | OP_minus		("-")
  | OP_star		("*")
  | OP_at		("@")
  | LP			("(")
  | RP			(")")
  | LB			("[")
  | RB			("]")
  | LCB			("{")
  | RCB			("}")
  | INT of IntInf.int
  | FLOAT of FloatLit.float
  | STRING of string
  ;

File
	: Decl+
	;

Decl
	: ImageDecl
	| ValueDecl
	| FunDecl
	| ActorDecl
	;

ImageDecl
	: "image" ID ";"
	;

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0