missingsemicolons

버전 1.0.0.0 (3.34 KB) 작성자: Brett Shoelson
Helps locate output-producing lines of code that are missing semicolons.
다운로드 수: 2.2K
업데이트 날짜: 2004/9/17

라이선스 보기

LINEVALS = MISSINGSEMICOLONS(TARGETFILES, SUPPRESS_SUBDIR_EVAL)

Returns in 'linevals' a structure containing the line numbers and offending strings of lines that are likely candidates for missing terminal semicolon. Lines commencing with keywords that typically do not produce an output at the command line (e.g., 'if', 'return', 'continue', etc.) are skipped.

TARGETFILES: Input may be either a string indicating a path to a SINGLE mfile (e.g., 'aviplayer.m', 'c:\brett\targetfiless\aviplayer.m'),
a DIRECTORY of files (eg. dir('*.m')), OR a PATH to the target directory. If a directory is input, the program examines all files in the directory AND, by default, subdirectories, compiling in a single structure the individual output for each file. To suppress inclusion of subdirectories, enter 1 for the optional second argument.

Note that I owe a debt of gratitude to Peter Acklam for this one; the program calls (and thus requires the download of) his mlstripcomments.m program, in his "MATLAB Comment Stripping Toolbox."

인용 양식

Brett Shoelson (2024). missingsemicolons (https://www.mathworks.com/matlabcentral/fileexchange/5365-missingsemicolons), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 File Operations에 대해 자세히 알아보기
도움

도움 받은 파일: % MATLAB Comment Stripping Toolbox

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Fixes a call to mlstripcommentsfile(). If you previously downloaded missingsemicolons.m, you can update with the new submission or simply change line 97 to:
mlstripcommentsfile(fname,'mstmpfile.m');