Skip to content
  • Joel K. Pettersson's avatar
    Scanner & parser clean-up. Macro renaming. · b64a0a3b
    Joel K. Pettersson authored
    Redesign scanner:
     * Add whitespace filtering level setting.
       Setting the level replaces the whitespace filtering
       functions in the table for the scanner instance.
     * Remove "nospace" versions of get/try functions.
       Simplify get function. Remove old space-skipping
       inline functions.
    
    Use the new way of filtering whitespace in parser.
    Also refactor parser scan_time() and its uses.
    
    Further testing of line and char position numbering
    needed, but now better than it was in v0.3.0.
    
    Change naming of keyword-like macros to sauCamelCaseName:
     * Rename compiler attribute SAU__* macros.
     * Rename ArrType SAU_DEF_* macros.
    
    Increase version to v0.3.1, with suffix 'c'.
    
    Change log:
     * 2019-07-07: scanner: Add ws filter level setting.
           Remove nospace versions of functions.
           Use next design. Consistent for filtering,
           even if changed. Clear up ws types naming,
           really fill in everything. Tidying.
     * 2019-07-09: Scanner flag fix.
           (Recommitted after fixing the fix.)
           Set version to v0.3.1.
     * 2019-07-11: Microflensing.
           scanner: Remove "RAW" (NULL-pointer) ws level,
           rename "PASS" to "ALL" and make it the default
           (instead of "RED1").
     * 2019-07-29: parser: refactor scan_time() and its uses.
     * 2019-08-05: Place after new v0.3.0,
           with July syntax changes split out into v0.2.13.
     * 2019-08-06: FreeBSD portability fix:
           Fix parsing when -ffast-math breaks NAN checks.
           (Only build some files with -ffast-math.)
           Increase version suffix to 'b'.
           Move Makefile change down to v0.2.13.
     * 2019-08-15: Naming: SAU__* -> sau* (and make "*" CamelCase)
           mixer: add missing sauMalloclike
           Naming: SAU_DEF_* -> sau* (arrtype)
     * 2019-08-16: Re-order ramp run & skip function params.
     * 2019-08-17: Remove scanner ws levels between ALL and NONE.
           (Not needed in current program.)
           Increase version suffix to 'c'.
     * 2019-08-23: Add sauNoinline to scan_time().
    b64a0a3b