Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for generic "pseudocode" #1023

Open
1 task done
FuadEfendi opened this issue Nov 19, 2024 · 0 comments
Open
1 task done

Add support for generic "pseudocode" #1023

FuadEfendi opened this issue Nov 19, 2024 · 0 comments
Labels
help wanted lexer missing Missing a lexer, please contribute

Comments

@FuadEfendi
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What is the missing lexer?

It should support mix of approaches: SQL, Procedural, Object Oriented, Functional; something generic.

This is example:

  ```pseudocode
  class Subject:
      observers: List<Observer>

      def attach(observer: Observer)
          observers.add(observer)

      def detach(observer: Observer)
          observers.remove(observer)

      def notify()
          for each observer in observers
              observer.update()

  class ConcreteObserver implements Observer:
      def update()
          // Handle the update
  ```
 class Subject:
     observers: List<Observer>

     def attach(observer: Observer)
         observers.add(observer)

     def detach(observer: Observer)
         observers.remove(observer)

     def notify()
         for each observer in observers
             observer.update()

 class ConcreteObserver implements Observer:
     def update()
         // Handle the update

Links to existing syntax definitions

N/A

@FuadEfendi FuadEfendi added help wanted lexer missing Missing a lexer, please contribute labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted lexer missing Missing a lexer, please contribute
Projects
None yet
Development

No branches or pull requests

1 participant