Automatically Fixing Syntax Errors Using the Levenshtein Distance

Automatically Fixing Syntax Errors Using the Levenshtein Distance

Leckraj Nagowah Antish Jeetun Suneil Jooty, Soulakshmee Nagowah;
adbu journal of engineering technology 2016 Vol. 5
266
nagowah2016automaticallyadbu

Abstract

Abstract: To ensure high quality software, much emphasis is laid on software testing. While a number of techniques and tools already exist to identify and locate syntax errors, it is still the duty of programmers to manually fix each of these uncovered syntax errors. In this paper we propose an approach to automate the task of fixing syntax errors by using existing compilers and the levenshtein distance between the identified bug and the possible fixes. The levenshtein distance is a measure of the similarity between two strings. A prototype, called ASBF, has also been built and a number of tests carried out which show that the technique works well in most cases. ASBF is able to automatically fix syntax errors in any erroneous source file and can also process several erroneous files in a source folder. The tests carried out also show that the technique can also be applied to multiple programming languages. Currently ASBF can automatically fix software bugs in the Java and the Python programming languages. The tool also has auto-learning capabilities where it can automatically learn from corrections made manually by a user. It can thereafter couple this learning process with the levenshtein distance to improve its software bug correction capabilities. Keywords: Automatically fixing syntax errors, bug fixing, auto-learn, levenshtein distance, Java, Python (Article history: Received 16 September 2016 and accepted 9 December 2016)

Citation

ID: 13834
Ref Key: nagowah2016automaticallyadbu
Use this key to autocite in SciMatic or Thesis Manager

References

Blockchain Verification

Account:
NFT Contract Address:
0x95644003c57E6F55A65596E3D9Eac6813e3566dA
Article ID:
13834
Unique Identifier:
3abddfd64d7c760aa04c7a4172571655
Network:
Scimatic Chain (ID: 481)
Loading...
Blockchain Readiness Checklist
Authors
Abstract
Journal Name
Year
Title
5/5
Creates 1,000,000 NFT tokens for this article
Token Features:
  • ERC-1155 Standard NFT
  • 1 Million Supply per Article
  • Transferable via MetaMask
  • Permanent Blockchain Record
Blockchain QR Code
Scan with Saymatik Web3.0 Wallet

Saymatik Web3.0 Wallet