gnudatalanguage / gdl

GDL - GNU Data Language
GNU General Public License v2.0
277 stars 61 forks source link

implied_print patch #1829

Closed GillesDuvert closed 5 months ago

GillesDuvert commented 6 months ago

adjusted simple formats for arrays to match IDL and take account of terminal width. Also, by removing superfluous parenthesis, make compilation faster (superfluous parenthesis, such as if ( xxx ) then or b=(cos(a)) make ANTLR2 parsing exponentially slower with the number of nested parenthesis. Need ANTLR3 or better to get out of this.)

before

GDL> findgen(3)
       0.00000       1.00000       2.00000

after

GDL> findgen(3)
       0.0000000       1.0000000       2.0000000