Commit b44adf06 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

bug fix in grammar to handle .xxx floats (no leading 0.) and handle subroutines correctly

parent de2e358c
Loading
Loading
Loading
Loading
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+720 −713

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+410 −421

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Original line number Diff line number Diff line
@@ -462,7 +462,7 @@ subroutineBlock

// if have subroutine w/ out args, is ambiguous; may get matched as identifier
subroutineCall
    : Identifier ( LPAREN expressionList? RPAREN )? expressionList
    : Identifier ( LPAREN expressionList? RPAREN ) expressionList
    ;

/*** Directives ***/
@@ -571,7 +571,7 @@ Identifier : FirstIdCharacter GeneralIdCharacter* ;

fragment SciNotation : [eE] ;
fragment PlusMinus : [-+] ;
fragment Float : Digit+ DOT Digit* ;
fragment Float : Digit+ DOT Digit* | DOT Digit*;
RealNumber : Float (SciNotation PlusMinus? Integer )? ;

fragment TimeUnit : 'dt' | 'ns' | 'us' | 'µs' | 'ms' | 's' ;