Initial CL parser/generator implementation

This commit is contained in:
2019-08-07 16:16:36 +02:00
commit 8126f8e3d1
25 changed files with 3728 additions and 0 deletions

80
src/pkgdef.lisp Normal file
View File

@ -0,0 +1,80 @@
;;;; OpenScenarioNext --- OpenScenario Language Design
;;;; This is copyrighted software. See documentation for terms.
;;;;
;;;; pkgdef.lisp --- Package Definitions
(cl:in-package #:cl-user)
;;;; %File Description:
;;;;
;;;; Define all OSN-related packages.
;;;;
(defpackage #:openscenarionext-utils
(:nicknames #:osn-utils)
(:use #:common-lisp)
(:export
;; conditions.lisp
#:osn-condition
#:osn-condition-context
#:osn-condition-short-string
#:osn-warning
#:osn-error
#:osn-user-condition
#:osn-internal-condition
#:osn-unexpected-condition
#:osn-user-warning
#:osn-internal-warning
#:osn-unexpected-warning
#:osn-user-error
#:osn-internal-error
#:osn-unexpected-error
#:osn-simple-user-warning
#:osn-simple-internal-warning
#:osn-simple-user-error
#:osn-simple-internal-error
#:make-unexpected-error-handler
#:make-unexpected-warning-handler
#:osn-assert-failure
#:osn-assert-failure-assertion
#:osn-assert
#:osn-user-warn
#:osn-internal-warn
#:coerce-to-osn-condition))
(defpackage #:openscenarionext
(:nicknames #:osn)
(:use #:common-lisp #:openscenarionext-utils)
(:export
#:osn-file
#:osn-file-scenario
#:scenario
#:scenario-name
#:scenario-acts
#:scenario-prototypes
#:scenario-resources
#:act
#:act-name
#:act-rules
#:rule
#:rule-condition
#:rule-modifier
#:rule-actions
#:tuple
#:tuple-items
#:make-tuple))
(defpackage #:openscenarionext-language
(:nicknames #:osn-lang)
(:use))
(defpackage #:openscenarionext-io
(:nicknames #:osn-io)
(:use #:common-lisp
#:openscenarionext-utils
#:openscenarionext)
(:export
#:parse-osn-file
#:parse-osn-stream
#:write-osn-file
#:write-osn-stream))