uni

University stuff
git clone git://git.margiolis.net/uni.git
Log | Files | Refs | README | LICENSE

float.fsm (399B)


      1 START=FLOAT
      2 
      3 FLOAT:		+ \-		-> FLOAT_BEG
      4 		0-9		-> FLOAT_NORM
      5 		*		-> BAD
      6 FLOAT_BEG:	0-9		-> FLOAT_NORM
      7 		*		-> BAD
      8 FLOAT_NORM:	0-9		-> FLOAT_NORM
      9 		e E		-> FLOAT_EXP
     10 		.		-> FLOAT_DEC
     11 		*		-> BAD
     12 FLOAT_DEC:	0-9		-> FLOAT_DEC
     13 		e E		-> FLOAT_EXP
     14 		\n		-> GOOD
     15 		*		-> BAD
     16 FLOAT_EXP:	0-9 + \-	-> FLOAT_EXP_N
     17 		*		-> BAD
     18 FLOAT_EXP_N:	0-9		-> FLOAT_EXP_N
     19 		\n		-> GOOD
     20 		*		-> BAD
     21 GOOD(OK):	\n		-> GOOD