SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Dec 2002
    Location
    pakistan
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    compiler and grammer testing

    hi all
    can you please suggest

    how to test the correctness and completeness of grammer?
    how to test complier components (lexical analyzer, parser, code generator)?

    any specific testing techniques/tool for the above tasks?

    i ll b very thankful for ur valuable suggestions and coments

    thanks and regards
    Asim Mirza

    ------------------
    okay
    okay

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Brookline,NH USA
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: compiler and grammer testing

    For Grammar checking, you can't beat the simple cut & paste into MS Word... If Microsoft automation (running invisible office apps from other office apps/custom applications) were supported you could automate the process and just log all the errors found, but even then you'd have to iterate the results log and review each defect so you may as well keep it a manual test anyway...

    ~ Fred

    ------------------

  3. #3
    Junior Member
    Join Date
    Mar 2002
    Location
    Robbinsdale, MN USA
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: compiler and grammer testing

    You could use Silk to automate the language input, then have Silk redirect the output to a file. You'd have to manually verify the file the 1st time and then have silk or some other tool do the file compares after that. Another option would be to verify the output as you capture it with Silk and have Silk do all the verification using it's verification functions.

    ------------------

  4. #4
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: compiler and grammer testing

    You have 3 efforts to consider with this kind of testing. Generating testable combinations, initiating the compile action, and verifying compiler results against expectations. The first is the most complex and will require careful planning so that test suite maintenance can be controlled. The latter two are rather easy.

    For the first step, to create a library the testable combinations, I'd suggest using something that easily handles text files and supports regular expressions - AWK or Perl for example. Generalized lists of possible data type values and establishing a collection of fill-in-the-blank 'templates' for each command will speed the effort.

    You could use Silk to automate the compile step and store the results, but a batch-capable make system (if supported) might be just as effective.

    Once the test run results are stored, you can apply any word processors' document compare function to expose the differences between this run and a previously established baseline. Auto-magically re-structuring and interpreting free-form results usually isnít worth the effort it requires.


    John


    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:17 AM.

Copyright BetaSoft Inc.