Skip to main contentCal State San Bernardino
>> [CNS] >> [Comp Sci Dept] >> [R J Botting] >> [CSci620] >> 01 [Source]
[Index] [Schedule] [Syllabi] [Text] [Labs] [Projects] [Resources] [Search] [Grading]
Notes: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
Thu May 4 11:16:04 PDT 2006 01.mth
Opening the PDF files on this page requires you to Download Adobe Reader or an equivalent viewer (GhostScript).

Contents


    CSci620 Session 01

      Content

      [ syllabus.pdf ] [ syllabi.html ] [ schedule.html ]

      Questions and Answers

        Can we write a program in two languages at once

        This is almost impossible. The only case that comes to mind is hiding a JavaScript script inside an HTML comment so that a simple Browser can not see the script and reject it.

        However, Jacob (Chuan-Che Lee), in Email found another example: in Apple ][ BASIC, machine code was embedded as REM statements(comments).

        It is common to find that a particular dialect or implementation has a statement (not in the standard syntax) that lets the programmer escape to assembler or machine code. For example Algol 60 had no such thing but Elliott 803 Algol (I did my Ph. D. mostly in this dialect) had a procedure that looked like this

         		ELLIOTT(7,0,1024,1,4,0,LABLE)'
        and was actually an embedded piece of Elliott machine code.

        I'm not very happy to include non-standard extensions to languages as examples of overlapping languages.

        By the way: studying ways of combining languages is an excellent MS Thesis topic.

      . . . . . . . . . ( end of section Questions and Answers) <<Contents | End>>

      Laboratory

      (1) Find web site and explore.

      (2) Create, compile, and run the smallest possible C++ program!

    . . . . . . . . . ( end of section CSci620 Session 01) <<Contents | End>>

    Glossary

  1. BNF::="Backus-Naur Form", for syntax and grammar, developed by Backus and Naur.
  2. EBNF::="Extended " BNF.
  3. HTML::= "HyperText Markup Language", used on the WWW.
  4. HTML_page::syntax= "<HTML>" head body.
  5. Java::="An " OO " Language from Sun".
  6. LISP::= "LISt Processing Language".
  7. LRM::="Language Reference Manual".
  8. OO::="Object-Oriented".
  9. Prolog::="Programming in Logic".
  10. TBA::="To Be Announced".
  11. UML::="Unified Modeling Language".
  12. URL::=Universal_Resource_Locator,
  13. Universal_Resource_Locator::syntax= protocol ":" location, where
    Net
    1. protocol::= "http" | "ftp" | "mailto" | ... ,
    2. location::= O( "//" host) O(pathname).

    (End of Net)

  14. WWW::= See http://www.csci.csusb.edu/dick/cs620/, index to web site for this class.
  15. XBNF::="eXtreme" BNF, developed by the teacher from EBNF, designed to ASCII input of syntax, semantics, and other formal specifications.

End