findent-octopus 1.0.post26__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. findent_octopus-1.0.post26/ChangeLog +665 -0
  2. findent_octopus-1.0.post26/LICENCE +28 -0
  3. findent_octopus-1.0.post26/MANIFEST.in +6 -0
  4. findent_octopus-1.0.post26/PKG-INFO +191 -0
  5. findent_octopus-1.0.post26/README.md +176 -0
  6. findent_octopus-1.0.post26/bin/makefile +82 -0
  7. findent_octopus-1.0.post26/emacs/README +32 -0
  8. findent_octopus-1.0.post26/emacs/findent.el +65 -0
  9. findent_octopus-1.0.post26/findent_octopus.egg-info/PKG-INFO +191 -0
  10. findent_octopus-1.0.post26/findent_octopus.egg-info/SOURCES.txt +61 -0
  11. findent_octopus-1.0.post26/findent_octopus.egg-info/dependency_links.txt +1 -0
  12. findent_octopus-1.0.post26/findent_octopus.egg-info/top_level.txt +1 -0
  13. findent_octopus-1.0.post26/gedit/README +69 -0
  14. findent_octopus-1.0.post26/gedit/findent-gedit +86 -0
  15. findent_octopus-1.0.post26/gedit/findent.plugin +10 -0
  16. findent_octopus-1.0.post26/gedit/findent.py +235 -0
  17. findent_octopus-1.0.post26/pyproject.toml +42 -0
  18. findent_octopus-1.0.post26/scripts/findent-octopus_batch +203 -0
  19. findent_octopus-1.0.post26/setup.cfg +4 -0
  20. findent_octopus-1.0.post26/setup.py +63 -0
  21. findent_octopus-1.0.post26/src/debug.cpp +36 -0
  22. findent_octopus-1.0.post26/src/debug.h +106 -0
  23. findent_octopus-1.0.post26/src/docs.cpp +578 -0
  24. findent_octopus-1.0.post26/src/docs.h +62 -0
  25. findent_octopus-1.0.post26/src/findent.cpp +52 -0
  26. findent_octopus-1.0.post26/src/findent.h +33 -0
  27. findent_octopus-1.0.post26/src/findent_types.h +68 -0
  28. findent_octopus-1.0.post26/src/findentclass.cpp +301 -0
  29. findent_octopus-1.0.post26/src/findentclass.h +112 -0
  30. findent_octopus-1.0.post26/src/findentrun.cpp +176 -0
  31. findent_octopus-1.0.post26/src/findentrun.h +33 -0
  32. findent_octopus-1.0.post26/src/fixed.cpp +574 -0
  33. findent_octopus-1.0.post26/src/fixed.h +65 -0
  34. findent_octopus-1.0.post26/src/flags.cpp +667 -0
  35. findent_octopus-1.0.post26/src/flags.h +140 -0
  36. findent_octopus-1.0.post26/src/fortran.cpp +1006 -0
  37. findent_octopus-1.0.post26/src/fortran.h +283 -0
  38. findent_octopus-1.0.post26/src/fortranline.cpp +141 -0
  39. findent_octopus-1.0.post26/src/fortranline.h +415 -0
  40. findent_octopus-1.0.post26/src/free.cpp +677 -0
  41. findent_octopus-1.0.post26/src/free.h +69 -0
  42. findent_octopus-1.0.post26/src/functions.cpp +324 -0
  43. findent_octopus-1.0.post26/src/functions.h +141 -0
  44. findent_octopus-1.0.post26/src/globals.cpp +30 -0
  45. findent_octopus-1.0.post26/src/globals.h +42 -0
  46. findent_octopus-1.0.post26/src/lexer.h +67 -0
  47. findent_octopus-1.0.post26/src/lexer.l +700 -0
  48. findent_octopus-1.0.post26/src/line_prep.cpp +606 -0
  49. findent_octopus-1.0.post26/src/line_prep.h +154 -0
  50. findent_octopus-1.0.post26/src/parser.y +594 -0
  51. findent_octopus-1.0.post26/src/pre_analyzer.cpp +76 -0
  52. findent_octopus-1.0.post26/src/pre_analyzer.h +46 -0
  53. findent_octopus-1.0.post26/src/prop.cpp +51 -0
  54. findent_octopus-1.0.post26/src/prop.h +71 -0
  55. findent_octopus-1.0.post26/src/relabel.cpp +925 -0
  56. findent_octopus-1.0.post26/src/relabel.h +33 -0
  57. findent_octopus-1.0.post26/src/simpleostream.cpp +32 -0
  58. findent_octopus-1.0.post26/src/simpleostream.h +71 -0
  59. findent_octopus-1.0.post26/src/tocpp.sh +29 -0
  60. findent_octopus-1.0.post26/src/version.h +45 -0
  61. findent_octopus-1.0.post26/vim/README +70 -0
  62. findent_octopus-1.0.post26/vim/findent.vim +113 -0
  63. findent_octopus-1.0.post26/vim/fortran.vim +272 -0
@@ -0,0 +1,665 @@
1
+ findent-4.1.3:
2
+ pre1: relabel.cpp: add relabel support for module procedure
3
+ pre2: disable --align_paren=1 for statements containing Hollerith
4
+ constants.
5
+ flags.cpp: --align-paren is now synonymous with --align-paren=1
6
+ --query-relabel is now synonymous with --query-relabel=2
7
+ pre3: line_prep.cpp: add some comment
8
+
9
+ findent-4.1.2:
10
+ pre1: docs.cpp: minor adaption
11
+ pre2: Add old-DEC statements TYPE, ACCEPT, DECODE, ENCODE
12
+ pre3: Add DEC's REREAD
13
+ Add support for '#' in I/O parameter (DEC's direct access)
14
+ e.g. read(3#20) x
15
+ Support for the even older "'" cannot be done,
16
+ however see pre4
17
+ Add support for & and $ next to * for label parameter in
18
+ call list (DEC) e.g: call sub(x,&20)
19
+ Add flag --changelog
20
+ Bring wfindent.bat more or less up to date
21
+ Fix some typo's in ChangeLog
22
+ pre4: line_prep.cpp, lexer.l: recognize u'n next to u#n
23
+ in for example READ(10'6) x
24
+ recognise DELETE (INTEL extension)
25
+ recognise FIND (INTEL extension)
26
+ recognise REWRITE (INTEL extension)
27
+ recognise SELECT RANK and RANK
28
+ pre5: test/test20.sh: add test for SELECT RANK
29
+ fix simplemake.sh, to create .inc files and compile relabel.cpp
30
+ add a direction to create and place the man page
31
+ pre6: implement refactoring END INTERFACE statements
32
+ pre7: implement refactoring END TYPE statements
33
+ pre8: add --refactor_end as synonym for --refactor_procedures,
34
+ the latter is deprecated.
35
+ Change some variable names accordingly.
36
+ pre9: implement -kd, --indent_continuation=default
37
+ implement --align_paren=1
38
+ pre10: wfindent: add --safe before other flags for findent
39
+ flags.cpp, flags.h, docs.cpp: add flag --safe
40
+ wfindent.bat: allow double-hyphened flags, use --safe
41
+ pre11: wfindent only handles regular, readable, writable files
42
+ simplemake.sh: add instructions for installing wfindent
43
+ pre12: fixed Bug: end procedure not indented (#7)
44
+ pre13: fortran.cpp, parser.y, prop.h: simplified check if statement is
45
+ executable statement
46
+ findent-4.1.1:
47
+ pre1: restored some parts of doc/README
48
+ pre2:fix gedit/findent.py (get_location() does not work any more)
49
+ doc/README: minor changes
50
+ pre3: lexer.l, lineprep.{h,cpp}, pre_analyzer.{h,cpp}, configure.ac
51
+ replaced std::vector and std::stack by std::deque
52
+ configure.ac: check for all used header files
53
+ pre4: free.cpp, fixed.cpp, docs.cpp: -l0 and -l1 now also work in fixed
54
+ removed bug with -l0 and free
55
+ relabel.cpp functions.cpp: take care of labels like 010.
56
+ pre5: some minor fixes in documentations
57
+ findent-4.1.0:
58
+ added relabel function:
59
+ --relabel[=n1,n2] --relabel-reset=0|1 --query-relabel=0|1|2
60
+ findent-3.1.8:
61
+ gedit_external.inc: change /bin/bash into /bin/sh
62
+ Makefile.am: change .o in .$(OBJEXT)
63
+ functions.(cpp,h}: remove firstchars(), replace by
64
+ std::string.substr()
65
+ pre_analyzer.{cpp,h}, fortran.cpp: remove first parameter from analyze()
66
+ flags.cpp, fortran,cpp: add '// fall through' to quiet compiler
67
+ Changed fortran.vim: no forced window-width for .f90,
68
+ no margins for .f
69
+ Added copyright to most of the files
70
+ src/Makefile.am: change $? to appropriate filenames
71
+ combine rule for parser.cpp and parser.hpp
72
+ src/parser.y: better lay-out
73
+ Ignore some flags in env FINDENT_FLAGS eg: -q -h
74
+ Better layout for manpage and help output.
75
+ findent-3.1.7:
76
+ change parser.h into parser.hpp.
77
+ bison-3.7 includes this in parser.cpp
78
+ findent-3.1.6:
79
+ docs.cpp: document environment variable FINDENT_FLAGS
80
+ vim/fortran.vim: add
81
+ let $FINDENT_FLAGS = ""
82
+ vim/fortran.vim:
83
+ remove ' 2>/dev/null', because not all shells understand this
84
+ gedit/findent.py: change <ctrl><alt>f into <ctrl><alt>i
85
+ gedit/gedit.plugin: add copyright
86
+ findent-3.1.5:
87
+ parser.y: recognize also (non-standard):
88
+ END FUNCTION(something)
89
+ END SUBROUTINE(something)
90
+ END PROCEDURE(something)
91
+ END PROGRAM(something)
92
+
93
+ Correct bug when parsing 'TYPE isname' and 'CLASS isname'
94
+ The lexer returned resp "TYPEIS" and "CLASSIS" which should
95
+ only be the case when 'IS' is followed by '('. (ticket 9)
96
+ findent-3.1.4:
97
+ adapted some debian stuff
98
+ docs.cpp: added donations entry in manpage
99
+ parser.y: recognize MODULE PROCEDURE SGAMMA, DGAMMA (ticket 8)
100
+ parser.y, lexer.l: recognize NON_RECURSIVE
101
+ findent-3.1.3:
102
+ changed /bin/bash back to /bin/sh for all scripts
103
+ used during installation and running (because of openBSD)
104
+ changed in test folder all uses of 'sed' to remove \r to 'tr'
105
+ because I couldn't get sed to work property on all systems
106
+ changed all uses of $< in Makefile.am's into $? (because of BSD make)
107
+ findent-3.1.2:
108
+ correct spelling error in debian/control
109
+ pre_analyzer.h: change IF etc into PRE_IF to avoid expansion
110
+ of macro's IF etc.
111
+ test/test18.sh: trivial change in sed command
112
+ deps/makedeps: use awk in stead of bash. (bash-3.x does not
113
+ associative arrays)
114
+ test: some tiny things to make it work in macOS
115
+ wfindent: check if gnu-getopt is available
116
+ test: change all bin/sh into bin/bash (because of $'string' construct)
117
+ findent-3.1.1:
118
+ added support for ESOPE (SEGMENT, ENDSEGMENT) as configuration
119
+ parameter
120
+ free-format: statement label can now contain an &
121
+ bug fix: fortran.cp: preprocessor line with continuations where not
122
+ handled properly
123
+ configure.ac: changed testing for gfortran
124
+ make check: start wineserver in first test to speed up checks.
125
+ before ubuntu19.04 this was not necessary
126
+ findent-3.1.0:
127
+ added simplemake.sh: compiles findent without
128
+ configure; make
129
+ updated wfindent
130
+ findent-3.0.1:
131
+ doc/README: add something about dependencies
132
+ findent-3.0.0:
133
+ add generation of dependencies (flags --deps and --makefdeps)
134
+ corrected a few minor bugs
135
+ findent-2.9.2:
136
+ fortran.cpp, findentclass.cpp: fixed error in -ifixed -lastusable
137
+ by taking in account the wizardbuffer
138
+ findent-2.9.1:
139
+ lexer.l: allow space after '#' in cpp preprocessor directive
140
+ findent-2.9.0:
141
+ add 2018 features:
142
+ CRITICAL [(...)]
143
+ CHANGE TEAM (...)
144
+ END TEAM [(...)]
145
+ fortran.cpp:
146
+ add CHANGETEAM for detection of moduleprocedure
147
+ add CLASSIS etc to not usables for flag -lastusable
148
+ test/Makefile.am test/test-compile.sh.in configure.ac:
149
+ test for working gfortran:
150
+ yes: 'make check' will compile sources
151
+ no: 'make check' will not compile sources
152
+
153
+ findent-2.8.6:
154
+ fix bug: wrong lastindent when last line is ENDIF,END etc.
155
+ this bug was introduced in version 2.8.3
156
+ adapt documentation for systems without sudo
157
+
158
+ findent-2.8.5:
159
+ implemented openmp awareness
160
+
161
+ findent-2.8.4:
162
+ major restructuring of the code.
163
+
164
+ findent-2.8.3:
165
+ parser.y, lexer.l: changed detection of do-constructs
166
+ DO ,
167
+ DO , 100
168
+ are now NOT classified as a do-construct
169
+ explicit detection of DOWHILE and DOCONCURRENT
170
+
171
+ Made detection of PROGRAM and FUNCTION more
172
+ precise:
173
+ for PROGRAM only allowed:
174
+ PROGRAM IDENTIFIER <followed by whatever you want>
175
+ some old dialects permit this
176
+ PROGRAM
177
+ i.e: program without a name
178
+ for FUNCTION:
179
+ parameter list is now required
180
+
181
+ makedeb: some enhancements.
182
+ debian.wheezy, debian.xenial: directories with deviations from sid
183
+
184
+ findent.cpp, some tests:
185
+ more generic refactoring of end statements. Now
186
+ for example: 'end subroutine' will be refactored to
187
+ 'end subroutine mysub'.
188
+ Moreover: 'end subroutine mysub' will be changed into
189
+ 'end function myfun' if appropriate.
190
+
191
+ test/Makefile: clean up
192
+
193
+ bootstrap: copies most files from test to debian/tests
194
+
195
+ test:
196
+ adapted test scripts to run in test and in sadt
197
+
198
+ findent.cpp, lexer.l:
199
+ let the lexer find the string findentfix: in stead
200
+ of a function in findent.cpp
201
+
202
+ findent.cpp, lexer.l, parser.y:
203
+ minor change in definition of lexer_set()
204
+
205
+ test/test-compile.sh.in:
206
+ improved output when test fails
207
+
208
+ findent.cpp, lexer.l:
209
+ add support for coco preprocessor
210
+
211
+ functions.cpp, functions.h:
212
+ moved some general usable string functions to functions.cpp
213
+
214
+ test:
215
+ added test18.sh for testing coco and cpp
216
+
217
+ lexer.l, parser.y, findent.cpp:
218
+ use lexer to scan preprocessor lines
219
+
220
+ TODO: correct handling of continuation lines of preprocessor
221
+ lines, especially coco continuations
222
+ : clean up code, findent.cpp is too messy
223
+
224
+ ~pre3
225
+ streamlined .h files, added prop.h usage.cpp usage.h
226
+ added flags.cpp flags.h lexer.h
227
+
228
+ re-arrange code, to make it better readable.
229
+ use list in stead of deque for (cur)lines
230
+
231
+ added free2fixed
232
+
233
+ ~pre4
234
+ implemented a finite state machine in get_full_statement()
235
+ change list and stack into deque
236
+
237
+ implemented user-choosable continuation character
238
+
239
+ cleaned up code
240
+
241
+ made some optimizations
242
+
243
+ adapted documentation
244
+
245
+
246
+ findent-2.8.2:
247
+ debianizing ...
248
+ findent-2.8.1:
249
+ adapt wfindent and wfindent.bat to long options
250
+ parser.y: get rid of shift-reduce conflict
251
+ src/Makefile.am: some minors to ensure proper regeneration
252
+ of lexer.cpp if necessary
253
+ findent-2.8.0:
254
+ implement ! findentfix:
255
+ clean up code, enhance documentation
256
+ parallel make, also for make check, seems to work now
257
+ findent-2.7.4:
258
+ src/Makefile.am, configure.ac: if flex/bison is not
259
+ to be used, but lexer.l or parser.y has been changed,
260
+ produce a warning message.
261
+ maketar: remove creating executable
262
+ Readme.1st: adapted to previous line
263
+ Change build process: no bison or flex needed when
264
+ building from tarball.
265
+ Update debian directory.
266
+ bootstrap: fix bug which prevented 'make dist' to run
267
+ src/Makefile.am, Makefile.am, scripts/Makefile.am:
268
+ fixes to facilitate 'make distcheck'
269
+ src/findent.cpp, add option -i- to disable indenting
270
+ test: add test7.sh and test8.sh to test flag -i-
271
+ README: add method to get indented comments when converting
272
+ from fixed to free
273
+ parser.y, lexer.y:
274
+ recognize PROCEDURE(not only MODULEPROCEDURE) as PROCEDURE
275
+ makedeb: add i386-wheezy
276
+ Makefile.am, configure.ac: introduce variable MAKEWIN to
277
+ mv findent to findent.exe when compiling for windows.
278
+ Somehow, now the mingw compiler does not generate foo.exe
279
+ when requested to produce foo.
280
+ findent.cpp:
281
+ add comment for names of long flags
282
+ add -osame option
283
+ findent.cpp tocpp.sh vim_plugin.cpp vim_plugin.h gedit_plugin.cpp
284
+ gedit_plugin.h
285
+ let findent output configuration files for usage with vim
286
+ and gedit. Flags:
287
+ --vim_help
288
+ --gedit_help
289
+ --vim_findent
290
+ --vim_fortran
291
+ --gedit_external
292
+ --gedit_plugin
293
+ --gedit_plugin_py
294
+ test:
295
+ use only one or two lines for testing flags -h, -H
296
+ add tests (test16.sh) for vim and gedit related flags.
297
+ make use of MAKEWIN (see configure.ac) to determine
298
+ if we made an windows executable.
299
+ parser.y: bugfix
300
+ take care that "dom(1)%t" is recognized as an lvalue
301
+ so that "dom(1)%t = 0" is not classified as the start
302
+ of a do-loop, but as an assignment by adding:
303
+ lvalue: lvalue '%' lvalue
304
+
305
+ test, findent.cpp, emacs
306
+ add ability to generate emacs config file.
307
+ add aliases for flags containing '_':
308
+ '-' can be used instead
309
+
310
+ findent-2.7.3:
311
+ findent-2.7.2:
312
+ copyright: BSD-3
313
+ debial/rules: add
314
+ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
315
+ debian/, makedeb, maketar:
316
+ some slight modifications for debian packaging
317
+ findent.cpp:
318
+ changed output of pure comment lines while converting
319
+ from fixed to free:
320
+ - comment starts with [cC*!] in column one:
321
+ the first character is replaced by '!' and the comment
322
+ is output unindented
323
+ - comment starting with '!', not in column 1, is indented
324
+ - comment with [dD] in column one:
325
+ is output as-is, prepended with '!', starting in column one
326
+ fixed format: if garbage is detected in label field,
327
+ output that line as-is
328
+ findent-2.7.1:
329
+ maketar: adapt version in debian/changelog
330
+ vim somewhat better findent.vim and fortran.vim
331
+ pre_analyzer.cpp: bugfix
332
+ findent-2.7.0:
333
+ findent.cpp:
334
+ - add option -lastindent to output only the indentation level
335
+ of the last line
336
+ - recognise '# if' etc
337
+ - fixed minor bug: code starting with preprocessor directive
338
+ in combination with -Ia did not function properly
339
+ - add flag -Q. returncode =2 for free, 4 for fixed
340
+ for usage in vim
341
+ - removed documentation for -Q, it is not needed now
342
+ - add stack for dolabels to obtain correct indenting in cases
343
+ like this:
344
+ do 1 i=1,2
345
+ #if x
346
+ 1 continue
347
+ #else
348
+ 1 continue
349
+ #endif
350
+ - make fixed ! comment output as in free
351
+ - better initialization of indents if startindent>0
352
+ - -Innn now sets auto_firstindent = 0
353
+ - better #if ... handling
354
+ wfindent:
355
+ - add code to look for findent in default PATH if
356
+ the given location (FINDENT=) does not work
357
+ - exit if no findent is found
358
+ all:
359
+ - omit 'using namespace std'
360
+ - update documentation README, README.1st
361
+ - move test folder out of src folder
362
+ - separate tests, new tests for -lastindent and -lastonly
363
+ vim:
364
+ - add a folder vim and two files: findent.vim and fortran.vim
365
+ findent-2.6.0:
366
+ findent.cpp:
367
+ - -Ia now also works correct if source starts with 'end',
368
+ 'endif' etc.
369
+ - bootstrap now fills in findent version in configure.ac
370
+ on the 'AC_INIT(' line
371
+ - configure.ac add AC_CONFIG_FILES statements to copy
372
+ test cases to build directory
373
+ findent-2.5.1:
374
+ findent.cpp:
375
+ - corrected help output for the -rR flag by replacing leading '\'
376
+ by space
377
+ - some improvements in help output
378
+ findent-2.5.0:
379
+ findent.cpp:
380
+ - lines starting originally with '!' are not indented
381
+ - pure comment lines, not starting with '!' get an indent
382
+ of at least 1
383
+ - added -C- flag: resets indent with 'contains'
384
+ - continuation lines not starting with '&' are extra intented
385
+ flag: -kn
386
+ - flag -k-: continuation lines are untouched
387
+ - findent.cpp: somewhat better layout of man page
388
+ README:
389
+ - add remark about not wanting irreversible changes to sources
390
+ wfindent:
391
+ - use installation path of findent in stead of 'findent'
392
+ - recognize -v, -h and -H flags: run findent using only this flag
393
+ - ignore -q flag
394
+ wfindent.bat:
395
+ - recognize -v, -h and -H flags: run findent using only this flag
396
+ - ignore -q flag
397
+ test:
398
+ - adapted progfree.f.try.f.ref and progfree-dos.f.try.f.ref
399
+ findent-2.4.1:
400
+ fixed typo in help text.
401
+ findent-2.4:
402
+ release 2.4
403
+ findent-2.3.1:
404
+ findent.cpp: correct explanation of -l flag in usage()
405
+ maketar: fix a few nearly-bugs
406
+ src/parser.y, src/Makefile.am: take care that older versions
407
+ of bison work
408
+
409
+ findent-2.3:
410
+ jfindent: is now in a separate folder: ../jfindent
411
+ with it's on autoconf setup
412
+ Makefile.am: added $(DESTDIR) for the man page
413
+ adapted to new jfindent location
414
+ findent.cpp: fix bug in coverting fixed to free when dealing
415
+ with a preprocessor continuation
416
+ configure.ac: explicitly include macros in m4, do not
417
+ use AC_CONFIG_MACRO_DIR, this seems not to work
418
+ in Debian wheezy
419
+ repaired make check. Send log file to stdout.
420
+ maketar, makezip: removed making jfindent.jar
421
+ configure.ac: use standard AC_PROG_YACC
422
+
423
+ jfindent 1.1:
424
+ jfindent now writes config file after reading (successful
425
+ or not) and after clicking 'Quit'
426
+ added 'recent folders' menu item under 'File'
427
+ some trivial changes
428
+ added menuitem 'File->Save configuration'
429
+ version 2.2:
430
+ convert to autoconf
431
+ findent-2.2:
432
+ Makefile: add support for creating 32 bit executable
433
+ findent.cpp: -H options produces man page
434
+ findent.cpp: better support for preprocessor lines with
435
+ continuation line
436
+ src/Makefile.am configure.ac:
437
+ take care that no manpage is made when compiling for
438
+ windows
439
+
440
+ findent-2.1:
441
+ wfindent.bat:
442
+ added
443
+ wfindent:
444
+ change from bash syntax to sh syntax
445
+ Jfindent.java:
446
+ added
447
+ added Oracle copyright text
448
+ finished ...
449
+ added file menu
450
+ added about menu
451
+ somewhat better menubar and better
452
+ texts for buttons and more intuitive behaviour with
453
+ 'show all options'
454
+ removed 'show all options' button, extend help
455
+ with this information
456
+ some trivia
457
+ when previewing a file, the scroll position
458
+ remains the same when trying different options
459
+ Make menu textArea's non-editable
460
+ CHANGELOG
461
+ added subversion Id to all files
462
+ Makefile:
463
+ add support for jfindent
464
+ fix minor bug: make -j works now
465
+ README:
466
+ add text for jfindent
467
+ revised the text
468
+ README.1st:
469
+ add text for jfindent
470
+ revised the text
471
+ INSTALL:
472
+ revised the text
473
+ lexer.l:
474
+ allow $ as non-first character in identifier
475
+
476
+ findent-2.0:
477
+ Complete new code
478
+ Better parser
479
+ Space insensitive
480
+ Fortran 2008 compliant
481
+
482
+ findent-1.6.5:
483
+ Makefile:
484
+ removed -g flag
485
+ created 'zip' and 'tar' targets
486
+ findent.y:
487
+ added code and help text for the -L flag
488
+ wfindent:
489
+ added -L flag
490
+ README:
491
+ replaced NOTE 1, it covers now tab input.
492
+ Added scripts 'makezip' and 'maketar'
493
+ Added README.1st
494
+
495
+ findent-1.6.4:
496
+ findent.y:
497
+ determine if input comes from terminal, warn user
498
+ and accept a single dot ('.') as end-of file
499
+ Extended usage() with examples
500
+
501
+ findent-1.6.3:
502
+ findent.l, findent.y, findent.h:
503
+ implement refactor routines
504
+ findent.y:
505
+ bug fixes for fixed form continuation lines
506
+
507
+ findent-1.6.2:
508
+ regcognise tabbed source:
509
+ <tab>[1-9]
510
+ is recognised as a continuation line
511
+ fixed bug when tab follows label: ltab2sp now takes in acccount
512
+ a statement label
513
+
514
+ findent-1.6.1:
515
+ findent.l:
516
+ get rid of flex message: "warning, dangerous trailing context"
517
+ by slight redefinition of statement-label
518
+ simplified else, elseif, elsewhere recognition
519
+ findent.y:
520
+ recognize debug lines in fixed format ('d' or 'D' in colimn 1),
521
+ treating them as comment lines.
522
+ Special treatment with -ofree: debug line as:
523
+ 'd print *,"debug",i'
524
+ will be output after conversion to free format as:
525
+ '!d print *,"debug",i'
526
+
527
+ findent-1.6.0:
528
+ Makefile:
529
+ slight change in rule to make .o from .cpp
530
+ wfindent:
531
+ added
532
+ findent.l:
533
+ fixed recognition of elseif by better definition of {nc}
534
+ README:
535
+ describe wfindent
536
+ INSTALL:
537
+ install wfindent
538
+
539
+ findent-1.5.9:
540
+ findent.l:
541
+ recognize 'label :' ('label:' was already recognized)
542
+ recognize false type as in 'typecode = 10'
543
+ better discrimination between fixed and free
544
+ findent.y:
545
+ recognize '123 enddo', do not double-de-indent
546
+
547
+ findent-1.5.8:
548
+ findent.y:
549
+ fill indent-stack from 0 to start_indent with the default indent
550
+ findent.l:
551
+ support for construct name in 'do' 'if' 'select' 'block'
552
+ recognize some forms of false end
553
+ recognize 'abstract type' and 'abstract interface'
554
+
555
+ findent-1.5.7
556
+ findent.l:
557
+ recognize strings in 'rest' state
558
+ more precise definition of function
559
+ recognize 'endprogram'
560
+ do not confuse 'do (i) =' witha do statement
561
+ findent.y:
562
+ fixed form: put an ' ' as possible separator between label and code
563
+
564
+
565
+ findent-1.5.6
566
+ Makefile:
567
+ added support for cross compiling to windows:
568
+ make clean
569
+ make MINGW=1
570
+ creates a windows 32 bit findent.exe
571
+ findent.l:
572
+ ticket 1:
573
+ more precise recognition of function statement
574
+
575
+ findent-1.5.5
576
+ findent.y:
577
+ added support for conditional preprocessor statements. Example:
578
+ #ifdef USEMPI
579
+ subroutine mysub(a,b)
580
+ real a,b
581
+ #else
582
+ subroutine mysub(a)
583
+ real a
584
+ #endif
585
+ end subroutine mysub
586
+
587
+ indents correctly now.
588
+
589
+ findent-1.5.4
590
+ findent.y:
591
+ recognize ' x = 3 & ! comment' as a line needing a continuation
592
+ preprocessor statements are handled on ad-hoc basis
593
+ findent.l:
594
+ preprocessor statements are not recognized any more
595
+
596
+ findent-1.5.3
597
+ findent.y:
598
+ add fixed-to-free: add check if this is a preprocessor line
599
+ fixed-to-free: fixed fortran can have a trailing comment,
600
+ starting with !, and have a continuation line.
601
+ This is fixed.
602
+ fixed-to-free: fixed bad handling of otherwise empty continuation lines
603
+ findent.l:
604
+ better recognition of fixed and free
605
+ recognize 'integer(kind=8) function func1(a,b)' as a function
606
+ Thanks to Dusan Jovic
607
+ removed 'select' from definition of explicitly not-handled keywords
608
+
609
+
610
+ findent-1.5.2
611
+ findent.l:
612
+ let lexer recognise 'type, public :: mytype' Thanks to Dusan Jovic
613
+ findent-1.5.1
614
+ findent.l:
615
+ added some patterns to distinguish between fixed and fixed format
616
+ findent.y:
617
+ fix for files that do not end with \n
618
+ fix for correct indenting continuation line while converting
619
+ findent-1.5
620
+ README:
621
+ add recipe to use equalprg in vim
622
+ findent.y:
623
+ add ';' in to rules to quiet bison-2.5
624
+ fix placement of preprocessor lines if they are in a
625
+ continuation suite
626
+ enlarge number of lines to be considered when determining
627
+ fixed or free from 10 to 1000
628
+ findent.l:
629
+ fix definition of {neol}
630
+
631
+ findent-1.4
632
+ findent.y:
633
+ make sure that string(n,' ') is always called with n >= 0
634
+ findent-1.3
635
+ version.h:
636
+ set version to 1.3
637
+ findent.h:
638
+ add definition for lexer_set()
639
+ findent.l:
640
+ add lexer_set()
641
+ in lexer_init(): change lexer_push() to lexer_set()
642
+ findent.y:
643
+ replace lexer_pop()...lexer_push() sequences by lexer_set()
644
+ minor code cleaning.
645
+ Makefile:
646
+ 'test' dependent of 'all'
647
+ 'clean' also cleans test directory
648
+ test/progfixed_dos.f:
649
+ add -ifixed in first line
650
+ test/progfree_dos.f:
651
+ add -ifree in first line
652
+ README:
653
+ minor adaptations
654
+ CHANGELOG added
655
+
656
+ findent-1.2
657
+ findent.l:
658
+ fix error in lexer_push
659
+
660
+ findent-1.1
661
+ findent.l:
662
+ fix error in lexer_pop
663
+
664
+ findent-1.0
665
+ initial release
@@ -0,0 +1,28 @@
1
+ Copyright: 2015-2021 Willem Vermin wvermin@gmail.com
2
+ 2020-2023 Meisam Farzalipour Tabriz
3
+
4
+
5
+ License: BSD-3-Clause
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions
8
+ are met:
9
+ 1. Redistributions of source code must retain the above copyright
10
+ notice, this list of conditions and the following disclaimer.
11
+ 2. Redistributions in binary form must reproduce the above copyright
12
+ notice, this list of conditions and the following disclaimer in the
13
+ documentation and/or other materials provided with the distribution.
14
+ 3. Neither the name of the copyright holder nor the names of its
15
+ contributors may be used to endorse or promote products derived
16
+ from this software without specific prior written permission.
17
+ .
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR
22
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,6 @@
1
+ include bin/makefile ChangeLog
2
+ graft src
3
+ graft vim
4
+ graft gedit
5
+ graft emacs
6
+ exclude bin/findent-octopus src/parser.cpp src/parser.hpp src/lexer.cpp