Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# file containing all langage constructs

C# file containing all langage constructs

Scheduled Pinned Locked Moved C#
csharpc++comquestion
12 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Ahmed Charfeddine

    Can you know of such sample file ? (The code sould not be necessarily compilable) Thank you in advance.

    Easy Profiler : Now open source ! http://www.codeproject.com/KB/cpp/easyprofiler.aspx

    A Offline
    A Offline
    Abhishek Sur
    wrote on last edited by
    #2

    What do you exactly mean ? All language means ? C#, VB.NET, F# etc all the available .NET languages ?? I dont find the meaning. :doh:

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    My Latest Articles-->** Simplify Code Using NDepend
    Basics of Bing Search API using .NET
    Microsoft Bing MAP using Javascript

    A 1 Reply Last reply
    0
    • A Abhishek Sur

      What do you exactly mean ? All language means ? C#, VB.NET, F# etc all the available .NET languages ?? I dont find the meaning. :doh:

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Simplify Code Using NDepend
      Basics of Bing Search API using .NET
      Microsoft Bing MAP using Javascript

      A Offline
      A Offline
      Ahmed Charfeddine
      wrote on last edited by
      #3

      no i said all langage constructs, ie the keywords of the C# langage. i have a parser and i want to see how it can behave in parsing all sorts of possibilities that can raise in a C# script.

      Easy Profiler : Now open source ! http://www.codeproject.com/KB/cpp/easyprofiler.aspx

      P 1 Reply Last reply
      0
      • A Ahmed Charfeddine

        no i said all langage constructs, ie the keywords of the C# langage. i have a parser and i want to see how it can behave in parsing all sorts of possibilities that can raise in a C# script.

        Easy Profiler : Now open source ! http://www.codeproject.com/KB/cpp/easyprofiler.aspx

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #4

        The language specification is available online. How hard could it be for you to create this yourself?

        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

        My blog | My articles | MoXAML PowerToys | Onyx

        A 1 Reply Last reply
        0
        • P Pete OHanlon

          The language specification is available online. How hard could it be for you to create this yourself?

          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

          As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

          My blog | My articles | MoXAML PowerToys | Onyx

          A Offline
          A Offline
          Ahmed Charfeddine
          wrote on last edited by
          #5

          No no I am not asking anybody to create the script for me. Only that if someone knows about/have any such thing then it'll be all appreciating to get it !

          Easy Profiler : Now open source ! http://www.codeproject.com/KB/cpp/easyprofiler.aspx

          P 1 Reply Last reply
          0
          • A Ahmed Charfeddine

            No no I am not asking anybody to create the script for me. Only that if someone knows about/have any such thing then it'll be all appreciating to get it !

            Easy Profiler : Now open source ! http://www.codeproject.com/KB/cpp/easyprofiler.aspx

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #6

            Ahmed Charfeddine wrote:

            No no I am not asking anybody to create the script for me.

            I didn't suggest you were. Only, in the time you've spent on this online, you could have completed this yourself from the specifications.

            "WPF has many lovers. It's a veritable porn star!" - Josh Smith

            As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

            My blog | My articles | MoXAML PowerToys | Onyx

            A 1 Reply Last reply
            0
            • P Pete OHanlon

              Ahmed Charfeddine wrote:

              No no I am not asking anybody to create the script for me.

              I didn't suggest you were. Only, in the time you've spent on this online, you could have completed this yourself from the specifications.

              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

              As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

              My blog | My articles | MoXAML PowerToys | Onyx

              A Offline
              A Offline
              Ahmed Charfeddine
              wrote on last edited by
              #7

              Is it that easy for purely C++ programmer ? I'll see !

              Easy Profiler : Now open source ! http://www.codeproject.com/KB/cpp/easyprofiler.aspx

              D 1 Reply Last reply
              0
              • A Ahmed Charfeddine

                Can you know of such sample file ? (The code sould not be necessarily compilable) Thank you in advance.

                Easy Profiler : Now open source ! http://www.codeproject.com/KB/cpp/easyprofiler.aspx

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #8

                Basic examples can be found here[^], though it would take a larger set to verify whether all keywords are accepted and interpreted correctly. Good luck :)

                I are Troll :suss:

                A 1 Reply Last reply
                0
                • L Lost User

                  Basic examples can be found here[^], though it would take a larger set to verify whether all keywords are accepted and interpreted correctly. Good luck :)

                  I are Troll :suss:

                  A Offline
                  A Offline
                  Ahmed Charfeddine
                  wrote on last edited by
                  #9

                  thanks!

                  Easy Profiler : Now open source ! http://www.codeproject.com/KB/cpp/easyprofiler.aspx

                  1 Reply Last reply
                  0
                  • A Ahmed Charfeddine

                    Can you know of such sample file ? (The code sould not be necessarily compilable) Thank you in advance.

                    Easy Profiler : Now open source ! http://www.codeproject.com/KB/cpp/easyprofiler.aspx

                    D Offline
                    D Offline
                    Daniel Grunwald
                    wrote on last edited by
                    #10

                    Be aware that there are some combinations of language constructs which are tricky to parse, or even completely ambiguous (in that case, the C# spec usually contains special disambiguation rules). Some of my favorites: Is it a generic method call? A(B < C, D > (42)); Difficult question mark: a is int? true : false (compare with: a is int? ? true : false) Using context sensitive keywords: partial class partial<where> where where : partial<where>

                    A 1 Reply Last reply
                    0
                    • D Daniel Grunwald

                      Be aware that there are some combinations of language constructs which are tricky to parse, or even completely ambiguous (in that case, the C# spec usually contains special disambiguation rules). Some of my favorites: Is it a generic method call? A(B < C, D > (42)); Difficult question mark: a is int? true : false (compare with: a is int? ? true : false) Using context sensitive keywords: partial class partial<where> where where : partial<where>

                      A Offline
                      A Offline
                      Ahmed Charfeddine
                      wrote on last edited by
                      #11

                      Exactly this is my problem. The issue is not just to have the keywords with individual samples. Rather I needed a big file that can contain the maximum possible number of combinations against witch I can observe the behavior of the tested parser. I am very sad that most often the best way of seeing if a langage is handled correctly can only give 99% garantee. That is by making tests. Mathematical formalism is lacked. This is not a personal problem it is a human problem : To garantee deterministic benchmarking, testing, or let's say validation of langage processors whther parsers, tarsnlator etc there need be , theoretically, a formal way how to represent the langage itself. Which means a langage of a langage. Which lead us to a dilemma. :((

                      Easy Profiler : Now open source ! http://www.codeproject.com/KB/cpp/easyprofiler.aspx

                      1 Reply Last reply
                      0
                      • A Ahmed Charfeddine

                        Is it that easy for purely C++ programmer ? I'll see !

                        Easy Profiler : Now open source ! http://www.codeproject.com/KB/cpp/easyprofiler.aspx

                        D Offline
                        D Offline
                        Dave Kreskowiak
                        wrote on last edited by
                        #12

                        No, I think he was referring to a simple Google search for "C# Language Specification" and that would have given you what you seek.

                        A guide to posting questions on CodeProject[^]
                        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                             2006, 2007, 2008
                        But no longer in 2009...

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups